TF-4233 Correctly set current label color on edit dialog open

This commit is contained in:
dab246
2026-01-07 15:21:12 +07:00
committed by Dat H. Pham
parent ac33424c30
commit 7b250f911b
3 changed files with 19 additions and 1 deletions
@@ -33,6 +33,13 @@ extension HandleLabelActionTypeExtension on LabelController {
required AccountId? accountId,
required Label label,
}) async {
if (accountId == null) {
consumeState(
Stream.value(Left(EditLabelFailure(NotFoundAccountIdException()))),
);
return;
}
await DialogRouter().openDialogModal(
child: CreateNewLabelModal(
labels: labels,