From 326ed4dc3f9a6f0e29814e15c4b5a4b8367dc399 Mon Sep 17 00:00:00 2001 From: Bartholomew Date: Wed, 24 Jul 2019 20:29:37 +0100 Subject: [PATCH] fix(core): fix broken search (#2488) --- packages/netlify-cms-core/src/backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/netlify-cms-core/src/backend.js b/packages/netlify-cms-core/src/backend.js index dece5e7d..a11e6aff 100644 --- a/packages/netlify-cms-core/src/backend.js +++ b/packages/netlify-cms-core/src/backend.js @@ -386,7 +386,7 @@ export class Backend { } return elem; }), - ]; + ].filter(Boolean); const collectionEntries = await this.listAllEntries(collection); return fuzzy.filter(searchTerm, collectionEntries, { extract: extractSearchFields(uniq(searchFields)),