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 78b78f2 commit 03b265d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/index.ts
Expand Up @@ -119,11 +119,11 @@ export const resolveAsGraphKey = (key?: Id | string) => {
*/
export const stripEmptyProperties = (obj: any) => {
Object.keys(obj).forEach((k) => {
// avoid walking vue reactivity
if (obj[k].__v_isReadonly || obj[k].__v_isRef)
return

if (obj[k] && typeof obj[k] === 'object') {
// avoid walking vue reactivity
if (obj[k].__v_isReadonly || obj[k].__v_isRef)
return
stripEmptyProperties(obj[k])
return
}
Expand Down

0 comments on commit 03b265d

Please sign in to comment.