mirror of
https://github.com/discourse/discourse.git
synced 2025-04-03 04:09:36 +08:00
FIX: saving tag changes without description (#24753)
This commit is contained in:
parent
48ec946702
commit
42a75e3df9
@ -131,7 +131,7 @@ export default Component.extend({
|
|||||||
@action
|
@action
|
||||||
finishedEditing() {
|
finishedEditing() {
|
||||||
const oldTagName = this.tag.id;
|
const oldTagName = this.tag.id;
|
||||||
this.newTagDescription = this.newTagDescription.replaceAll("\n", "<br>");
|
this.newTagDescription = this.newTagDescription?.replaceAll("\n", "<br>");
|
||||||
this.tag
|
this.tag
|
||||||
.update({ id: this.newTagName, description: this.newTagDescription })
|
.update({ id: this.newTagName, description: this.newTagDescription })
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user