bill %!s(int64=2) %!d(string=hai) anos
pai
achega
a74783ba82
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
   }