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