fix server metric iteration

This commit is contained in:
ThatOneCalculator 2023-06-06 19:10:43 -07:00
parent f2d9db74c2
commit eddc051d9f

View File

@ -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++;