瀏覽代碼

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

visuddhinanda 2 年之前
父節點
當前提交
4fb5965762
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {