Explorar o código

fix: CommandChainCard maybe has null

hi-cactus! %!s(int64=3) %!d(string=hai) anos
pai
achega
17eb5f0543
Modificáronse 1 ficheiros con 1 adicións e 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 () => (