Skip to content

Commit

Permalink
fix: project report detail reopen rate page jump optimization (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujiahao-hjh authored Nov 7, 2023
1 parent c9c4064 commit f6ba1a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell/app/modules/dop/pages/report/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ const ProjectReport = ({ route }: { route: { path: string } }) => {
'BUG',
selectIterations.length ? selectIterations : iterations.map((item) => item.id),
['REOPEN'],
`,"reopenedCount":[1]`,
),
),
},
Expand Down Expand Up @@ -767,9 +768,10 @@ const getIssuesStates = (
type: string,
iterations: number[],
belone?: string[],
other?: string,
) => {
const list = states.filter((state) => state.issueType === type && (!belone || belone.includes(state.stateBelong)));
return `{"states":[${list.map((state) => state.stateID)}],"iterationIDs":[${iterations}]}`;
return `{"states":[${list.map((state) => state.stateID)}],"iterationIDs":[${iterations}]${other || ''}}`;
};

const rateColor = (
Expand Down

0 comments on commit f6ba1a0

Please sign in to comment.