bill 2 years ago
parent
commit
a74783ba82
1 changed files with 1 additions and 1 deletions
  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])
 
   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)
     setOpen(false)
   }