Przeglądaj źródła

value.case === null 用于所有格位

visuddhinanda 3 lat temu
rodzic
commit
50d8f1735b

+ 3 - 1
dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

@@ -69,7 +69,9 @@ const WbwDetailRelationWidget = ({ data, onChange, onAdd }: IWidget) => {
     const mRelation = relations
     const mRelation = relations
       ?.filter(
       ?.filter(
         (value) =>
         (value) =>
-          value.case === caseEnd[caseEnd.length - 1].replaceAll(".", "")
+          value.case === caseEnd[caseEnd.length - 1].replaceAll(".", "") ||
+          value.case === "" ||
+          value.case === null
       )
       )
       .map((item) => {
       .map((item) => {
         const localName = terms?.find(
         const localName = terms?.find(