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])
 
   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)
   }