Update monitors page Autocomplete field to use inputValue prop instead fo value, logger minor tweak
This commit is contained in:
1 parent
6e95d28e27
commit
a798f98ff4
2 files changed
+3
-3
No files matched your search
@@ -136,7 +136,7 @@ const Monitors = ({ isAdmin }) => {
|
||||
<Search
|
||||
options={monitorState?.monitorsSummary?.monitors ?? []}
|
||||
filteredBy="name"
|
||||
value={search}
|
||||
inputValue={search}
|
||||
handleInputChange={handleSearch}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user