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