We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88ec06b commit 9bdf882Copy full SHA for 9bdf882
site/src/views/theme-editor/index.vue
@@ -136,14 +136,10 @@ export default defineComponent({
136
137
const handleEditConfigChange = (newcontent, _, status) => {
138
themeConfigContent.value = newcontent;
139
- if (
140
- status.contentErrors &&
141
- Array.isArray(status.contentErrors.validationErrors) &&
142
- status.contentErrors.validationErrors.length === 0
143
- ) {
144
- editThemeFormatRight.value = true;
145
- } else {
+ if (status.contentErrors && status.contentErrors.parseError) {
146
editThemeFormatRight.value = false;
+ } else {
+ editThemeFormatRight.value = true;
147
}
148
};
149
0 commit comments