From abe84748833a00ef399e7a38781b9e599ff03b9b Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 6 Jun 2023 19:10:43 -0700 Subject: [PATCH] fix server metric iteration --- packages/client/src/widgets/server-metric/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/client/src/widgets/server-metric/index.vue b/packages/client/src/widgets/server-metric/index.vue index b44cca714a..8ecdeb1965 100644 --- a/packages/client/src/widgets/server-metric/index.vue +++ b/packages/client/src/widgets/server-metric/index.vue @@ -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++;