TF-4233 Fix the response success check to use key presence instead of value nullness.
This commit is contained in:
+8
-8
@@ -16,19 +16,19 @@ extension HandleLabelActionTypeExtension on MailboxDashBoardController {
|
||||
if (PlatformInfo.isWeb) {
|
||||
isPopupMenuOpened.value = true;
|
||||
}
|
||||
return labelController
|
||||
.openLabelMenuAction(
|
||||
try {
|
||||
await labelController.openLabelMenuAction(
|
||||
context,
|
||||
imagePaths,
|
||||
label,
|
||||
position: position,
|
||||
_onPerformLabelActionType,
|
||||
)
|
||||
.whenComplete(() {
|
||||
if (PlatformInfo.isWeb) {
|
||||
isPopupMenuOpened.value = false;
|
||||
}
|
||||
});
|
||||
);
|
||||
} finally {
|
||||
if (PlatformInfo.isWeb) {
|
||||
isPopupMenuOpened.value = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void _onPerformLabelActionType(Label label, LabelActionType actionType) {
|
||||
|
||||
Reference in New Issue
Block a user