Improve removeAllEdges
This commit is contained in:
parent
a5d0be0396
commit
56c22a9105
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in New Issue