chore(kompose): remove from settings EE-4741 (#8376)

This commit is contained in:
Ali
2023-01-26 16:03:32 +13:00
committed by GitHub
parent 674a98e432
commit c1c4dd190d
25 changed files with 237 additions and 238 deletions

View File

@@ -59,7 +59,11 @@ export class EditEdgeStackViewController {
}
async uiCanExit() {
if (this.formValues.StackFileContent.replace(/(\r\n|\n|\r)/gm, '') !== this.oldFileContent.replace(/(\r\n|\n|\r)/gm, '') && this.state.isEditorDirty) {
if (
this.formValues.StackFileContent &&
this.formValues.StackFileContent.replace(/(\r\n|\n|\r)/gm, '') !== this.oldFileContent.replace(/(\r\n|\n|\r)/gm, '') &&
this.state.isEditorDirty
) {
return this.ModalService.confirmWebEditorDiscard();
}
}