Skip to content

Commit

Permalink
feat: improve new tag handling #3035
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Feb 26, 2024
1 parent 34ba6ae commit 1bbe671
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ export class DialogEditTagsForTaskComponent implements OnDestroy {
}

addNewTag(title: string): void {
const id = this._tagService.addTag({ title });
const cleanTitle = (t: string): string => {
return t.replace('#', '');
};

const id = this._tagService.addTag({ title: cleanTitle(title) });
this._updateTags(unique([...this.tagIds, id]));
}

Expand Down

0 comments on commit 1bbe671

Please sign in to comment.