From b5b79e49bc41a634813c9adf401eca91ca2e2a3d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr>
Date: Mon, 31 Aug 2020 14:24:33 +0200
Subject: [PATCH] [dome] restore default settings

---
 ivette/src/dome/src/renderer/data/settings.ts | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/ivette/src/dome/src/renderer/data/settings.ts b/ivette/src/dome/src/renderer/data/settings.ts
index 506a36557f9..6caf4ee6110 100644
--- a/ivette/src/dome/src/renderer/data/settings.ts
+++ b/ivette/src/dome/src/renderer/data/settings.ts
@@ -227,13 +227,10 @@ function useSettings<A>(
   const [value, setValue] = React.useState<A>(loader);
   // Broadcast
   React.useEffect(() => {
-    if (K) {
-      const event = D.evt;
-      const callback = () => setValue(loader());
-      SysEmitter.on(event, callback);
-      return () => { SysEmitter.off(event, callback); };
-    }
-    return undefined;
+    const event = D.evt;
+    const callback = () => setValue(loader());
+    SysEmitter.on(event, callback);
+    return () => { SysEmitter.off(event, callback); };
   });
   // Updates
   const updateValue = React.useCallback((newValue: A) => {
-- 
GitLab