From 918ae9fab9c2cabf92b7835183b91ab7fdba1455 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 28 May 2021 14:39:05 +0300 Subject: [PATCH] fix wrong editor change detection --- .../app/modules/admin/screens/rules/rules-screen.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen.component.ts index 700b230a8..053d1452e 100644 --- a/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen.component.ts @@ -62,7 +62,7 @@ export class RulesScreenComponent extends ComponentHasChanges { } get hasChanges(): boolean { - return this._decorations.length > 0; + return this.currentLines.toString() !== this.initialLines.toString(); } get codeEditorText() {