switch finally to then

Signed-off-by: Mark Dunphy <markd@spotify.com>
This commit is contained in:
Mark Dunphy
2025-04-08 09:35:34 -04:00
parent cc77358234
commit b60edcbe74
@@ -68,8 +68,8 @@ export const EntityContextMenuItemBlueprint = createExtensionBlueprint({
if ('onClick' in menuItemProps) {
handleClick = () => {
const result = menuItemProps.onClick();
if (result && 'finally' in result) {
result.finally(onMenuClose);
if (result && 'then' in result) {
result.then(onMenuClose, onMenuClose);
} else {
onMenuClose();
}