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
|
<Search
|
||||||
options={monitorState?.monitorsSummary?.monitors ?? []}
|
options={monitorState?.monitorsSummary?.monitors ?? []}
|
||||||
filteredBy="name"
|
filteredBy="name"
|
||||||
value={search}
|
inputValue={search}
|
||||||
handleInputChange={handleSearch}
|
handleInputChange={handleSearch}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import store from "../store";
|
import store from "../store";
|
||||||
const LOG_LEVEL = import.meta.env.VITE_APP_LOG_LEVEL || "debug";
|
const LOG_LEVEL = import.meta.env.VITE_APP_LOG_LEVEL || "debug";
|
||||||
|
const NO_OP = () => {};
|
||||||
|
|
||||||
class Logger {
|
class Logger {
|
||||||
constructor() {
|
constructor() {
|
||||||
let logLevel = LOG_LEVEL;
|
let logLevel = LOG_LEVEL;
|
||||||
@@ -11,8 +13,6 @@ class Logger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
updateLogLevel(logLevel) {
|
updateLogLevel(logLevel) {
|
||||||
const NO_OP = () => {};
|
|
||||||
|
|
||||||
if (logLevel === "none") {
|
if (logLevel === "none") {
|
||||||
this.info = NO_OP;
|
this.info = NO_OP;
|
||||||
this.error = NO_OP;
|
this.error = NO_OP;
|
||||||
|
|||||||
Reference in new issue
Block a user