bill 2 年之前
父节点
当前提交
a74783ba82
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/draw-file/modal.tsx

+ 1 - 1
src/views/draw-file/modal.tsx

@@ -195,7 +195,7 @@ export const SelectFuse = (props: SelectImageProps & { caseId: number }) => {
   }, [props.caseId])
   }, [props.caseId])
 
 
   const onSubmit = async () => {
   const onSubmit = async () => {
-    const filterTags = tags.filter(tag => addTagIds.includes(tag.tagId.toString()))
+    const filterTags = addTagIds.map(id => tags.find(tag => tag.tagId.toString() === id)!)
     props.onSave(blob, filterTags)
     props.onSave(blob, filterTags)
     setOpen(false)
     setOpen(false)
   }
   }