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