From 56c22a91057c4688ab59f305599cad0e4457b422 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Wed, 5 Sep 2018 10:17:55 +0200 Subject: [PATCH] Improve removeAllEdges --- client/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main.js b/client/src/main.js index e77a5b0b..f306c74b 100644 --- a/client/src/main.js +++ b/client/src/main.js @@ -15,7 +15,7 @@ Vue.config.productionTip = false // TODO: Move into a separate project as a plugin // function getRidOfEdges(collection) { - if (typeof collection === 'object' && collection) { + if (typeof collection === 'object' && collection && !Array.isArray(collection)) { let newObj = {} for (const k in collection) { if (k === 'edges') {