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',