Skip to content

Commit

Permalink
Adding a check for empty ids
Browse files Browse the repository at this point in the history
  • Loading branch information
simianhacker committed May 31, 2017
1 parent 5cef778 commit abe62ac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const deps = {
export default function collectDashboards(req, ids) {
const { callWithRequest } = req.server.plugins.elasticsearch.getCluster('admin');
const config = req.server.config();
if (ids.length === 0) return Promise.resolve([]);
const params = {
index: config.get('kibana.index'),
type: 'dashboard',
Expand Down

0 comments on commit abe62ac

Please sign in to comment.