mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 12:13:48 +01:00
fix server metric iteration
This commit is contained in:
parent
f2d9db74c2
commit
eddc051d9f
@ -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 New Issue
Block a user