TF-4301 Deduping before append label to list
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -249,6 +249,7 @@ class LabelController extends BaseController
|
||||
}
|
||||
|
||||
void _addLabelToList(Label newLabel) {
|
||||
labels.removeWhere((label) => label.id == newLabel.id);
|
||||
labels.add(newLabel);
|
||||
labels.sortByAlphabetically();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user