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