diff --git a/client/src/Features/UI/uiSlice.ts b/client/src/Features/UI/uiSlice.ts index aad3b63f5..c06889fcb 100644 --- a/client/src/Features/UI/uiSlice.ts +++ b/client/src/Features/UI/uiSlice.ts @@ -9,6 +9,7 @@ type ThemeMode = "light" | "dark"; type ChartType = "histogram" | "line"; type TableName = + | "dashboard" | "monitors" | "team" | "maintenance" @@ -26,6 +27,7 @@ interface SidebarState { } interface UIState { + dashboard: TableState; monitors: TableState; pagespeed: TableState; team: TableState; @@ -51,6 +53,9 @@ const initialMode: ThemeMode = window?.matchMedia?.("(prefers-color-scheme: dark : "light"; const initialState: UIState = { + dashboard: { + rowsPerPage: 10, + }, monitors: { rowsPerPage: 10, }, diff --git a/client/src/Pages/Dashboard/index.tsx b/client/src/Pages/Dashboard/index.tsx index fac8d15fc..d41827fef 100644 --- a/client/src/Pages/Dashboard/index.tsx +++ b/client/src/Pages/Dashboard/index.tsx @@ -34,7 +34,7 @@ const Dashboard = () => { types: [...MonitorTypes], checksLimit: 1, refreshInterval: 30000, - rowsPerPageTable: "monitors", + rowsPerPageTable: "dashboard", rowsPerPageDefault: 100, });