From 5dac53fb0800af8933cc4cc6ab09e92b0fc9dda1 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 28 Jan 2021 20:15:57 +0000 Subject: [PATCH] Reduce scope of libraries. --- src/showplanner/libraries.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/showplanner/libraries.tsx b/src/showplanner/libraries.tsx index 0134437..0994ac2 100644 --- a/src/showplanner/libraries.tsx +++ b/src/showplanner/libraries.tsx @@ -39,8 +39,14 @@ type searchingStateEnum = export function LibraryColumn() { const [sauce, setSauce] = useState("None"); const dispatch = useDispatch(); - const { auxPlaylists, managedPlaylists, userPlaylists } = useSelector( - (state: RootState) => state.showplan + const auxPlaylists = useSelector( + (state: RootState) => state.showplan.auxPlaylists + ); + const managedPlaylists = useSelector( + (state: RootState) => state.showplan.managedPlaylists + ); + const userPlaylists = useSelector( + (state: RootState) => state.showplan.userPlaylists ); const [autoPlayoutModal, setAutoPlayoutModal] = useState(false);