diff --git a/scilog/src/app/logbook/core/add-content/add-content.component.spec.ts b/scilog/src/app/logbook/core/add-content/add-content.component.spec.ts index 2cd5c2f7..368b61a0 100644 --- a/scilog/src/app/logbook/core/add-content/add-content.component.spec.ts +++ b/scilog/src/app/logbook/core/add-content/add-content.component.spec.ts @@ -194,6 +194,7 @@ describe('AddContentComponent', () => { spyOn(component, 'changeChain') let defaultTags = ['tag1', 'tag2']; component.updateTags(defaultTags); + expect(component.contentChanged).toBe(true); expect(component.tag).toEqual(defaultTags); expect(component.changeChain).toHaveBeenCalledTimes(1); }) diff --git a/scilog/src/app/logbook/core/add-content/add-content.component.ts b/scilog/src/app/logbook/core/add-content/add-content.component.ts index f18c2220..98bb0348 100644 --- a/scilog/src/app/logbook/core/add-content/add-content.component.ts +++ b/scilog/src/app/logbook/core/add-content/add-content.component.ts @@ -242,6 +242,7 @@ export class AddContentComponent implements OnInit { updateTags(tags: string[]) { this.tag = tags; + this.contentChanged = true; this.changeChain(); }