From 51f36dd412868983f8bac9b90f63be9ab0cc3b56 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 17 Aug 2018 11:01:54 +0300 Subject: [PATCH] [DE] Bug 38452 --- apps/documenteditor/main/app/controller/Links.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Links.js b/apps/documenteditor/main/app/controller/Links.js index 70263da21..4d503f1e0 100644 --- a/apps/documenteditor/main/app/controller/Links.js +++ b/apps/documenteditor/main/app/controller/Links.js @@ -256,8 +256,7 @@ define([ win.show(); break; case 'remove': - if (currentTOC && props) - currentTOC = props.get_InternalClass(); + currentTOC = (currentTOC && props) ? props.get_InternalClass() : undefined; this.api.asc_RemoveTableOfContents(currentTOC); break; }