fix: update dashboard limits to 100 (#19417)
parent
a6dc8748d2
commit
55f9c2bc2d
|
@ -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)
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
export const LIMIT = 100
|
||||
export const BUCKET_LIMIT = 100
|
||||
export const RULE_LIMIT = 100
|
||||
export const DASHBOARD_LIMIT = 100
|
||||
|
|
Loading…
Reference in New Issue