From f91af69ec4b89333e8d2727ce5bb8eea004ab8dc Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 13 Mar 2023 10:59:42 +0000 Subject: [PATCH] FIX: Avatar upload error (#20658) Followup to 4f9afabf877b06c434dc84286fbebd0434a6efc3 --- .../javascripts/discourse/app/controllers/avatar-selector.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/discourse/app/controllers/avatar-selector.js b/app/assets/javascripts/discourse/app/controllers/avatar-selector.js index 7cb45162cfc..682cd001347 100644 --- a/app/assets/javascripts/discourse/app/controllers/avatar-selector.js +++ b/app/assets/javascripts/discourse/app/controllers/avatar-selector.js @@ -65,6 +65,10 @@ export default Controller.extend(ModalFunctionality, { return this._selected ?? this.defaultSelection; }, + set selected(value) { + this._selected = value; + }, + @action onSelectedChanged(value) { this._selected = value;