From 9152a9a4ccac9529ffeea1a37602640f0d7dd362 Mon Sep 17 00:00:00 2001 From: Fan Pei Date: Sun, 4 Feb 2024 11:18:23 +0900 Subject: [PATCH] feat: Deserialize drafted prop --- .../client/src/components/inspector/InspectorStateField.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/inspector/InspectorStateField.vue b/packages/client/src/components/inspector/InspectorStateField.vue index ea19776e..5bb11348 100644 --- a/packages/client/src/components/inspector/InspectorStateField.vue +++ b/packages/client/src/components/inspector/InspectorStateField.vue @@ -156,8 +156,8 @@ function submitDrafting() { nodeId, state: { newKey: draftingNewProp.value.key, - type: typeof draftingNewProp.value.value, - value: draftingNewProp.value.value, + type: typeof toSubmit(draftingNewProp.value.value), + value: toSubmit(draftingNewProp.value.value), }, } satisfies InspectorStateEditorPayload) resetDrafting()