Disabled sort on payload on group submit

This commit is contained in:
cake
2025-12-19 19:49:30 +01:00
parent 54b50886c0
commit d2a68e6533

View File

@@ -332,7 +332,7 @@ public partial class EditProfileUi
saveTooltip: "Apply the selected tags to this syncshell profile.", saveTooltip: "Apply the selected tags to this syncshell profile.",
submitAction: payload => SubmitGroupTagChanges(payload), submitAction: payload => SubmitGroupTagChanges(payload),
allowReorder: true, allowReorder: true,
sortPayloadBeforeSubmit: true, sortPayloadBeforeSubmit: false,
onPayloadPrepared: payload => onPayloadPrepared: payload =>
{ {
_tagEditorSelection.Clear(); _tagEditorSelection.Clear();
@@ -586,7 +586,7 @@ public partial class EditProfileUi
IsNsfw: null, IsNsfw: null,
IsDisabled: null)).ConfigureAwait(false); IsDisabled: null)).ConfigureAwait(false);
_profileTagIds = payload.Length == 0 ? Array.Empty<int>() : payload.ToArray(); _profileTagIds = payload.Length == 0 ? [] : [.. payload];
Mediator.Publish(new ClearProfileGroupDataMessage(_groupInfo.Group)); Mediator.Publish(new ClearProfileGroupDataMessage(_groupInfo.Group));
} }
catch (Exception ex) catch (Exception ex)