From 26e04cb6f2b7a3d222165575e0928dc5ab6fc79c Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 28 Jun 2023 19:04:23 +0200 Subject: [PATCH] Fix user labels not saving properly when edited. --- source/content-scripts/features/user-labels.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/content-scripts/features/user-labels.tsx b/source/content-scripts/features/user-labels.tsx index 82e9086..cec541c 100644 --- a/source/content-scripts/features/user-labels.tsx +++ b/source/content-scripts/features/user-labels.tsx @@ -259,7 +259,7 @@ export class UserLabelsFeature extends Component { 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,