mirror of
https://github.com/Sonarr/Sonarr
synced 2025-12-06 08:28:37 +01:00
Fixed deleting tags from UI
This commit is contained in:
parent
fee3f8150e
commit
9cf6be32fa
1 changed files with 4 additions and 4 deletions
|
|
@ -55,13 +55,13 @@ function Tag({ id, label }: TagProps) {
|
|||
}, []);
|
||||
|
||||
const handleConfirmDeleteTag = useCallback(() => {
|
||||
setIsDeleteTagModalOpen(false);
|
||||
}, []);
|
||||
|
||||
const handleDeleteTagModalClose = useCallback(() => {
|
||||
dispatch(deleteTag({ id }));
|
||||
}, [id, dispatch]);
|
||||
|
||||
const handleDeleteTagModalClose = useCallback(() => {
|
||||
setIsDeleteTagModalOpen(false);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Card
|
||||
className={styles.tag}
|
||||
|
|
|
|||
Loading…
Reference in a new issue