Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
fix: avoid looping Vue reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Aug 25, 2022
1 parent 4a59cf3 commit 78b78f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Expand Up @@ -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') {
Expand Down

0 comments on commit 78b78f2

Please sign in to comment.