Skip to content

Commit

Permalink
fix(vue3): adding property to reactive object
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed May 8, 2022
1 parent 6f3532e commit 3c18ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend-vue3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const backend = defineBackend({
}
})

api.stateEditor.isRef = value => !!value.__v_isRef
api.stateEditor.isRef = value => !!value?.__v_isRef
api.stateEditor.getRefValue = ref => ref.value
api.stateEditor.setRefValue = (ref, value) => {
ref.value = value
Expand Down

0 comments on commit 3c18ea2

Please sign in to comment.