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
|
// TODO: Move into a separate project as a plugin
|
||||||
//
|
//
|
||||||
function getRidOfEdges(collection) {
|
function getRidOfEdges(collection) {
|
||||||
if (typeof collection === 'object' && collection) {
|
if (typeof collection === 'object' && collection && !Array.isArray(collection)) {
|
||||||
let newObj = {}
|
let newObj = {}
|
||||||
for (const k in collection) {
|
for (const k in collection) {
|
||||||
if (k === 'edges') {
|
if (k === 'edges') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue