Fix user labels not saving properly when edited.
This commit is contained in:
parent
74ea66083d
commit
26e04cb6f2
|
@ -259,7 +259,7 @@ export class UserLabelsFeature extends Component<Props, State> {
|
|||
this.addLabelsToUsernames(querySelectorAll(".link-user"), newId);
|
||||
} else {
|
||||
const index = userLabels.findIndex(({value}) => value.id === id);
|
||||
userLabels.splice(index, 1);
|
||||
await userLabels.splice(index, 1)[0].remove();
|
||||
userLabels.push(
|
||||
await createValueUserLabel({
|
||||
id,
|
||||
|
|
Loading…
Reference in New Issue