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);
|
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,
|
||||||
|
|
Loading…
Reference in New Issue