json editor nit

This commit is contained in:
Ruben Fiszel
2025-08-31 13:17:12 +00:00
parent 5510b1dd95
commit c77ab0c701
@@ -547,9 +547,13 @@
'Arguments can be edited either using the wizard, or by editing their JSON Schema.'
}}
lightMode
on:change={() => {
schemaString = JSON.stringify(schema, null, '\t')
editor?.setCode(schemaString)
on:change={(e) => {
if (e.detail) {
schemaString = JSON.stringify(schema, null, '\t')
editor?.setCode(schemaString)
} else {
schema = JSON.parse(schemaString)
}
}}
/>
</div>