diff --git a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts index c68721efa8..53d74d48ec 100644 --- a/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts +++ b/Frontend/src/app/features/mds/mds-editor/widgets/mds-editor-widget-author/mds-editor-widget-author.component.ts @@ -2,7 +2,7 @@ import { Component, Input, OnInit, ViewChild } from '@angular/core'; import { MatTabGroup } from '@angular/material/tabs'; import { Metadata } from 'ngx-edu-sharing-graphql'; import { BehaviorSubject } from 'rxjs'; -import { filter, tap } from 'rxjs/operators'; +import { filter, first, tap } from 'rxjs/operators'; import { Node } from '../../../../../core-module/rest/data-object'; import { RestConstants } from '../../../../../core-module/rest/rest-constants'; import { RestIamService } from '../../../../../core-module/rest/services/rest-iam.service'; @@ -135,6 +135,9 @@ export class MdsEditorWidgetAuthorComponent implements OnInit, NativeWidgetCompo return values; } private async updateValues(nodes: Node[]) { + if (this.hasChanges.value) { + return; + } this._nodes = nodes; this.refreshTabs(); }