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

pull/7058/head
Konv Suu 2023-10-22 21:51:46 -05:00 committed by GitHub
parent 88ec06b717
commit 9bdf882517
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

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