FIX: saving tag changes without description (#24753)

This commit is contained in:
Kris 2023-12-06 14:17:56 -05:00 committed by GitHub
parent 48ec946702
commit 42a75e3df9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ export default Component.extend({
@action
finishedEditing() {
const oldTagName = this.tag.id;
this.newTagDescription = this.newTagDescription.replaceAll("\n", "<br>");
this.newTagDescription = this.newTagDescription?.replaceAll("\n", "<br>");
this.tag
.update({ id: this.newTagName, description: this.newTagDescription })
.then((result) => {