From b465f575379fe233a00a73e0ff4b59ec19c74552 Mon Sep 17 00:00:00 2001 From: Jakob Voss Date: Wed, 2 Oct 2019 13:59:57 +0200 Subject: [PATCH] Don't die on too many request ids (#48) --- lib/queries/get-mappings-from.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/queries/get-mappings-from.js b/lib/queries/get-mappings-from.js index 44e1249..ffa45f9 100644 --- a/lib/queries/get-mappings-from.js +++ b/lib/queries/get-mappings-from.js @@ -22,7 +22,7 @@ async function getMappingsFrom (args, schemes) { const url = getEntities(qids, languages, props) return httpRequest(url) - .then(res => res.entities) + .then(res => res.entities || []) .then(res => { var mappings = []