From 78b78f20b2a12e928396df16fa709f62c088d07a Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Thu, 25 Aug 2022 23:29:59 +1000 Subject: [PATCH] fix: avoid looping Vue reactivity --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index a29c094..61ba265 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -120,7 +120,7 @@ export const resolveAsGraphKey = (key?: Id | string) => { export const stripEmptyProperties = (obj: any) => { Object.keys(obj).forEach((k) => { // avoid walking vue reactivity - if (k === 'value') + if (obj[k].__v_isReadonly || obj[k].__v_isRef) return if (obj[k] && typeof obj[k] === 'object') {