From abe62ac0046ccc91508e53f16a586719d37040b3 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Wed, 31 May 2017 09:47:39 -0700 Subject: [PATCH] Adding a check for empty ids --- src/core_plugins/kibana/server/lib/export/collect_dashboards.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core_plugins/kibana/server/lib/export/collect_dashboards.js b/src/core_plugins/kibana/server/lib/export/collect_dashboards.js index 4a1f6028e248..24867dc967f4 100644 --- a/src/core_plugins/kibana/server/lib/export/collect_dashboards.js +++ b/src/core_plugins/kibana/server/lib/export/collect_dashboards.js @@ -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',