Skip to content
Snippets Groups Projects
Commit 517dbeec authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13591 TIME 0:20 fix guard canDeactivate

parent 82f3bcb4
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ export class AfterProcessGuard implements CanDeactivate<ProcessComponent> {
component.unlockResource();
}
if ((component.isToolModified() && !component.isModalOpen()) || component.appDocumentViewer.isEditingTemplate()) {
if ((component.isToolModified() && !component.isModalOpen()) || (component.appDocumentViewer !== undefined && component.appDocumentViewer.isEditingTemplate())) {
if (confirm(component.lang.saveModifiedData)) {
await component.saveModificationBeforeClose();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment