From 0f744bc465c3b1ad98fabdc224a610e14ce43577 Mon Sep 17 00:00:00 2001 From: Volodymyr Lench Date: Mon, 28 Feb 2022 16:55:47 +0200 Subject: [PATCH] fix the issue when some documents from db are nullable --- reverse_engineering/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reverse_engineering/api.js b/reverse_engineering/api.js index c3eb6ff..47118ea 100644 --- a/reverse_engineering/api.js +++ b/reverse_engineering/api.js @@ -285,7 +285,7 @@ async function getDocuments(container, maxItemCount) { console.log(err); logger.log('error', err); } - return documents; + return documents.filter(Boolean); } async function getDocumentsAmount(container) {