mirror of
https://github.com/zoriya/flood.git
synced 2026-06-01 18:47:44 +00:00
fix(client): filter empty tags when setting/submitting tags (#715)
This commit is contained in:
@@ -47,7 +47,7 @@ const SetTagsModal: FC = () => {
|
||||
|
||||
const {selectedTorrents} = TorrentStore;
|
||||
const formData = formRef.current.getFormData() as {tags: string};
|
||||
const tags = formData.tags ? formData.tags.split(',') : [];
|
||||
const tags = formData.tags ? formData.tags.split(',').filter((tag) => !!tag) : [];
|
||||
|
||||
setIsSettingTags(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user