diff --git a/site/src/views/theme-editor/index.vue b/site/src/views/theme-editor/index.vue index add17a502..ba65ae1e0 100644 --- a/site/src/views/theme-editor/index.vue +++ b/site/src/views/theme-editor/index.vue @@ -136,14 +136,10 @@ export default defineComponent({ const handleEditConfigChange = (newcontent, _, status) => { themeConfigContent.value = newcontent; - if ( - status.contentErrors && - Array.isArray(status.contentErrors.validationErrors) && - status.contentErrors.validationErrors.length === 0 - ) { - editThemeFormatRight.value = true; - } else { + if (status.contentErrors && status.contentErrors.parseError) { editThemeFormatRight.value = false; + } else { + editThemeFormatRight.value = true; } };