Skip to content

Commit

Permalink
fix(client): filter empty tags when setting/submitting tags (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinalDoom authored Jan 4, 2024
1 parent 20a672a commit 748195a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 748195a

Please sign in to comment.