Update monitors page Autocomplete field to use inputValue prop instead fo value, logger minor tweak

This commit is contained in:
Alex Holliday committed 2024-10-09 14:42:27 +08:00
1 parent 6e95d28e27
commit a798f98ff4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ const Monitors = ({ isAdmin }) => {
<Search
options={monitorState?.monitorsSummary?.monitors ?? []}
filteredBy="name"
value={search}
inputValue={search}
handleInputChange={handleSearch}
/>
</Box>
+2 -2
View File
@@ -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;