A platform for community discussion. Free, open, simple.
FIX: Remove dead code left over from preview cleanup (#37519)
Sam424304582e3e
diff --git a/frontend/discourse/admin/components/upsert-category/general.gjs b/frontend/discourse/admin/components/upsert-category/general.gjsindex e219bc26e68..72604b65720 100644--- a/frontend/discourse/admin/components/upsert-category/general.gjs+++ b/frontend/discourse/admin/components/upsert-category/general.gjs@@ -272,20 +272,6 @@ export default class UpsertCategoryGeneral extends Component {@actiononStyleTypeChange(value) {this.args.form.setProperties({ style_type: value });-- const updateData = { style_type: value };-- // Use transientData (current form values) if available, otherwise fall back to category model- const currentIcon =- this.args.transientData?.icon ?? this.args.category.icon ?? null;- const currentEmoji =- this.args.transientData?.emoji ?? this.args.category.emoji ?? null;-- if (value === "icon" && currentIcon) {- updateData.icon = currentIcon;- } else if (value === "emoji" && currentEmoji) {- updateData.emoji = currentEmoji;- }}@action