Skip to content

Commit 922b78d

Browse files
committed
feat: update tpc bug
Signed-off-by: coder-sett <[email protected]>
1 parent b92126a commit 922b78d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

apps/web/src/modules/oh/DataView/HatchingTreatment/Graduate/EvaluationInfo/Badge/RiskBadge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const RiskBadge = ({ shortCode, mertic }) => {
1313
const { key, 维度: dimension } = mertic;
1414
const { count, metricState } = useGetRisk(shortCode, key);
1515
const hasReject = useMemo(() => {
16-
return metricState?.some((z) => z.state === -1);
16+
return metricState
17+
?.filter((z) => z.memberType !== 0)
18+
.some((z) => z.state === -1);
1719
}, [metricState]);
1820
const needClarification = useMemo(() => {
1921
return (

apps/web/src/modules/oh/DataView/HatchingTreatment/Hatch/EvaluationInfo/Badge/RiskBadge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const RiskBadge = ({ shortCode, mertic }) => {
1414
const { key, 维度: dimension } = mertic;
1515
const { count, metricState } = useGetRisk(shortCode, key);
1616
const hasReject = useMemo(() => {
17-
return metricState?.some((z) => z.state === -1);
17+
return metricState
18+
?.filter((z) => z.memberType !== 0)
19+
.some((z) => z.state === -1);
1820
}, [metricState]);
1921
const needClarification = useMemo(() => {
2022
return (

apps/web/src/modules/oh/DataView/HatchingTreatment/Sandbox/EvaluationInfo/Badge/RiskBadge.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const RiskBadge = ({ shortCode, mertic }) => {
1414
const { key, 维度: dimension } = mertic;
1515
const { count, metricState } = useGetRisk(shortCode, key);
1616
const hasReject = useMemo(() => {
17-
return metricState?.some((z) => z.state === -1);
17+
return metricState
18+
?.filter((z) => z.memberType !== 0)
19+
.some((z) => z.state === -1);
1820
}, [metricState]);
1921
const needClarification = useMemo(() => {
2022
return (

0 commit comments

Comments
 (0)