fix: update dashboard limits to 100 (#19417)

pull/19422/head
Alex Boatwright 2020-08-24 12:02:14 -07:00 committed by GitHub
parent a6dc8748d2
commit 55f9c2bc2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -3,3 +3,4 @@
export const LIMIT = 100
export const BUCKET_LIMIT = 100
export const RULE_LIMIT = 100
export const DASHBOARD_LIMIT = 100