fix server metric iteration
This commit is contained in:
parent
23d59b634b
commit
abe8474883
|
@ -109,7 +109,10 @@ os.api("server-info", {}).then((res) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const toggleView = () => {
|
const toggleView = () => {
|
||||||
if (widgetProps.view === 5) {
|
if (
|
||||||
|
(widgetProps.view === 5 && instance.searchFilters) ||
|
||||||
|
(widgetProps.view === 4 && !instance.searchFilters)
|
||||||
|
) {
|
||||||
widgetProps.view = 0;
|
widgetProps.view = 0;
|
||||||
} else {
|
} else {
|
||||||
widgetProps.view++;
|
widgetProps.view++;
|
||||||
|
|
Loading…
Reference in New Issue