1
Fork 0

Fix user labels not saving properly when edited.

This commit is contained in:
Bauke 2023-06-28 19:04:23 +02:00
parent 74ea66083d
commit 26e04cb6f2
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ export class UserLabelsFeature extends Component<Props, State> {
this.addLabelsToUsernames(querySelectorAll(".link-user"), newId); this.addLabelsToUsernames(querySelectorAll(".link-user"), newId);
} else { } else {
const index = userLabels.findIndex(({value}) => value.id === id); const index = userLabels.findIndex(({value}) => value.id === id);
userLabels.splice(index, 1); await userLabels.splice(index, 1)[0].remove();
userLabels.push( userLabels.push(
await createValueUserLabel({ await createValueUserLabel({
id, id,