Skip to content

Commit 9bdf882

Browse files
authored
docs(theme-editor): handleEditConfigChange logic (#7038)
1 parent 88ec06b commit 9bdf882

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

site/src/views/theme-editor/index.vue

+3-7
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,10 @@ export default defineComponent({
136136
137137
const handleEditConfigChange = (newcontent, _, status) => {
138138
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 {
139+
if (status.contentErrors && status.contentErrors.parseError) {
146140
editThemeFormatRight.value = false;
141+
} else {
142+
editThemeFormatRight.value = true;
147143
}
148144
};
149145

0 commit comments

Comments
 (0)