From a798f98ff4fec5f35810b5f7975cc0907f973b6a Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 9 Oct 2024 14:42:27 +0800 Subject: [PATCH] Update monitors page Autocomplete field to use inputValue prop instead fo value, logger minor tweak --- Client/src/Pages/Monitors/Home/index.jsx | 2 +- Client/src/Utils/Logger.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/src/Pages/Monitors/Home/index.jsx b/Client/src/Pages/Monitors/Home/index.jsx index a03959076..4e72f0346 100644 --- a/Client/src/Pages/Monitors/Home/index.jsx +++ b/Client/src/Pages/Monitors/Home/index.jsx @@ -136,7 +136,7 @@ const Monitors = ({ isAdmin }) => { diff --git a/Client/src/Utils/Logger.js b/Client/src/Utils/Logger.js index ec50712aa..aaf4eec4e 100644 --- a/Client/src/Utils/Logger.js +++ b/Client/src/Utils/Logger.js @@ -1,5 +1,7 @@ import store from "../store"; const LOG_LEVEL = import.meta.env.VITE_APP_LOG_LEVEL || "debug"; +const NO_OP = () => {}; + class Logger { constructor() { let logLevel = LOG_LEVEL; @@ -11,8 +13,6 @@ class Logger { } updateLogLevel(logLevel) { - const NO_OP = () => {}; - if (logLevel === "none") { this.info = NO_OP; this.error = NO_OP;