Эх сурвалжийг харах

fix: CommandChainCard maybe has null

hi-cactus! 3 жил өмнө
parent
commit
17eb5f0543

+ 1 - 1
src/views/IncidentDetail/CommandChainCard/index.tsx

@@ -16,7 +16,7 @@ export default defineComponent({
 
     const getDept = (value: string = '') =>
       commonStore.globalDict['zhdd_org_upload']?.find(
-        (i) => i.dictValue.toString() === value.toString(),
+        (i) => i?.dictValue?.toString() === value?.toString(),
       )?.dictLabel ?? '-';
 
     return () => (