Quellcode durchsuchen

res.data.match ? res.data.match : undefined,

visuddhinanda vor 3 Jahren
Ursprung
Commit
4fb5965762
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      dashboard/src/components/admin/relation/RelationEdit.tsx

+ 1 - 1
dashboard/src/components/admin/relation/RelationEdit.tsx

@@ -141,7 +141,7 @@ const RelationEditWidget = ({
                   fromCase: res.data.from?.case,
                   fromSpell: res.data.from?.spell,
                   to: res.data.to,
-                  match: res.data.match,
+                  match: res.data.match ? res.data.match : undefined,
                   category: res.data.category,
                 };
               } else {