From 1ec8f1db193628b816ab14825afb6fd0a3890294 Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 26 May 2022 00:10:48 +0200 Subject: [PATCH] :ambulance: Critical hotfix for various bugs --- src/components/Config/ConfigChanger.tsx | 2 +- src/components/Config/SaveConfig.tsx | 1 - src/components/Config/SelectConfig.tsx | 16 ---------------- src/components/modules/calendar/MediaDisplay.tsx | 1 - src/tools/state.tsx | 2 +- 5 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 src/components/Config/SelectConfig.tsx diff --git a/src/components/Config/ConfigChanger.tsx b/src/components/Config/ConfigChanger.tsx index 8d4be4db8..5b8836803 100644 --- a/src/components/Config/ConfigChanger.tsx +++ b/src/components/Config/ConfigChanger.tsx @@ -9,7 +9,7 @@ export default function ConfigChanger() { useEffect(() => { getConfigs().then((configs) => setConfigList(configs)); // setConfig(initialConfig); - }, [config.name]); + }, [config]); // If configlist is empty, return a loading indicator if (configList.length === 0) { return ( diff --git a/src/components/Config/SaveConfig.tsx b/src/components/Config/SaveConfig.tsx index a0b7997e7..4d4835684 100644 --- a/src/components/Config/SaveConfig.tsx +++ b/src/components/Config/SaveConfig.tsx @@ -44,7 +44,6 @@ export default function SaveConfigComponent(props: any) { > (''); - return ( -