Skip to content

Commit

Permalink
Apply edit when tags updated
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jan 11, 2024
1 parent 95c693a commit 2770718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export class AddContentComponent implements OnInit {

updateTags(tags: string[]) {
this.tag = tags;
this.contentChanged = true;
this.changeChain();
}

Expand Down

0 comments on commit 2770718

Please sign in to comment.