Improve removeAllEdges

This commit is contained in:
Ramon Wenger 2018-09-05 10:17:55 +02:00
parent a5d0be0396
commit 56c22a9105
1 changed files with 1 additions and 1 deletions

View File

@ -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') {