Fixes bug when trying to edit geometry in code interface. (#7778)

This commit is contained in:
Oreille
2021-09-02 19:49:09 +02:00
committed by GitHub
parent da6f492a44
commit d7f50ab6f6
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ export default defineComponent({
const stringValue = computed<string>(() => {
if (props.value === null) return '';
if (props.type === 'json') {
if (typeof props.value === 'object') {
return JSON.stringify(props.value, null, 4);
}