From 55f9c2bc2d67802ae64b794f2dee267162ce4978 Mon Sep 17 00:00:00 2001 From: Alex Boatwright Date: Mon, 24 Aug 2020 12:02:14 -0700 Subject: [PATCH] fix: update dashboard limits to 100 (#19417) --- ui/src/dashboards/actions/thunks.ts | 8 +++++++- ui/src/resources/constants/index.ts | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/dashboards/actions/thunks.ts b/ui/src/dashboards/actions/thunks.ts index 8542721e05..01c950dd47 100644 --- a/ui/src/dashboards/actions/thunks.ts +++ b/ui/src/dashboards/actions/thunks.ts @@ -54,6 +54,7 @@ import {getAll, getByID, getStatus} from 'src/resources/selectors' // Constants import * as copy from 'src/shared/copy/notifications' import {DEFAULT_DASHBOARD_NAME} from 'src/dashboards/constants/index' +import {DASHBOARD_LIMIT} from 'src/resources/constants' // Types import { @@ -225,7 +226,12 @@ export const getDashboards = () => async ( const org = getOrg(state) - const resp = await api.getDashboards({query: {orgID: org.id}}) + const resp = await api.getDashboards({ + query: { + orgID: org.id, + limit: DASHBOARD_LIMIT, + }, + }) if (resp.status !== 200) { throw new Error(resp.data.message) diff --git a/ui/src/resources/constants/index.ts b/ui/src/resources/constants/index.ts index c05a10a5bf..6850dc154e 100644 --- a/ui/src/resources/constants/index.ts +++ b/ui/src/resources/constants/index.ts @@ -3,3 +3,4 @@ export const LIMIT = 100 export const BUCKET_LIMIT = 100 export const RULE_LIMIT = 100 +export const DASHBOARD_LIMIT = 100