diff --git a/src/views/ObjectFieldComponent.vue b/src/views/ObjectFieldComponent.vue index 15847c5c..ff6d3967 100644 --- a/src/views/ObjectFieldComponent.vue +++ b/src/views/ObjectFieldComponent.vue @@ -122,7 +122,10 @@ export default { return tokenFormatter(value) }, addNewLine(value) { - return value.replaceAll('\\n', '\n') + if (typeof value === 'string') { + return value.replaceAll('\\n', '\n') + } + return value }, }, }