From 17b9a937b17b950a69d6523169209a6bb34b534c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 15 May 2023 12:52:40 +0200 Subject: [bugfix] Fix duplicating fields on profile edit (#1788) * [bugfix] Fix duplicating fields on profile edit * test non-duplicate fields --- internal/processing/account/update.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/processing/account/update.go') diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go index 0baeebb6a..d7018367d 100644 --- a/internal/processing/account/update.go +++ b/internal/processing/account/update.go @@ -155,6 +155,7 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form } // Process the raw fields we stored earlier. + account.Fields = make([]*gtsmodel.Field, 0, len(account.FieldsRaw)) for _, fieldRaw := range account.FieldsRaw { field := >smodel.Field{} -- cgit v1.2.3