Skip to content

Commit 3a91111

Browse files
committed
fix(editor): update value after format
1 parent df01f22 commit 3a91111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/components/editor/TheEditor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ const format = async () => {
204204
source: props.modelValue,
205205
parser
206206
})
207-
snippetStore.patchCurrentSnippetContentByKey('value', formatted)
207+
await snippetStore.patchCurrentSnippetContentByKey('value', formatted)
208+
setValue()
208209
track('snippets/format')
209210
} catch (err) {
210211
console.error(err)

0 commit comments

Comments
 (0)