docs(theme-editor): handleEditConfigChange logic (#7038)

pull/7058/head
Konv Suu 1 year ago committed by GitHub
parent 88ec06b717
commit 9bdf882517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}
};

Loading…
Cancel
Save