A platform for community discussion. Free, open, simple.
DEV: Fix a content localization spec flake (#39273)
Jarek Radosz3e61da26a550
diff --git a/frontend/discourse/app/components/topic-localized-content-toggle.gjs b/frontend/discourse/app/components/topic-localized-content-toggle.gjsindex f3175b4205d..59179aa04e6 100644--- a/frontend/discourse/app/components/topic-localized-content-toggle.gjs+++ b/frontend/discourse/app/components/topic-localized-content-toggle.gjs@@ -34,7 +34,7 @@ export default class TopicLocalizedContentToggle extends Component {if (this.currentUser) {this.currentUser.set("user_option.show_original_content", newValue);- ajax(`/u/${this.currentUser.username}.json`, {+ await ajax(`/u/${this.currentUser.username}.json`, {type: "PUT",data: { show_original_content: newValue },});