Explorar el Código

fix: CommandChainCard maybe has null

hi-cactus! hace 3 años
padre
commit
17eb5f0543
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/IncidentDetail/CommandChainCard/index.tsx

+ 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 () => (