diff --git a/src/renderer/components/CurateBox.tsx b/src/renderer/components/CurateBox.tsx index aba1ca8e0..ee322ff6c 100644 --- a/src/renderer/components/CurateBox.tsx +++ b/src/renderer/components/CurateBox.tsx @@ -192,7 +192,7 @@ export function CurateBox(props: CurateBoxProps) { })); } props.onTagTextChange(''); - }, [props.curation.folder]); + }, [props.curation.folder, props.curation.game.tags]); const onAddPlatform = React.useCallback((platform: Platform) => { const platforms = props.curation.game.platforms || []; @@ -204,14 +204,14 @@ export function CurateBox(props: CurateBoxProps) { })); } props.onPlatformTextChange(''); - }, [props.curation.folder]); + }, [props.curation.folder, props.curation.game.platforms]); const onRemoveTag = React.useCallback((tagId: number) => { dispatch(removeTag({ folder, tagId })); - }, [props.curation.folder]); + }, [props.curation.folder, props.curation.game.tags]); const onRemovePlatform = React.useCallback((platformId) => { dispatch(removePlatform({ @@ -219,7 +219,7 @@ export function CurateBox(props: CurateBoxProps) { platformId, platformAppPaths: props.platformAppPaths })); - }, [props.curation.folder]); + }, [props.curation.folder, props.curation.game.platforms]); const onToggleContentNodeView = React.useCallback((tree: string[]) => { dispatch(toggleContentNodeView({