Custom Actions invoked after cloud function response

Actions & Logic

If I invoke a custom action from a button directly it works but not after a response from a cloud function
I have the same custom action called from 2 buttons, one calls directly the below and one after a cloud function call. I am checking the response from the cloud function call and then calling the custom action but the custom action is not invoked
Any idea what is causing this ?

import 'package:url_launcher/url_launcher.dart';

Future<void> launchURLExternalCopy() async {
  final Uri _url = Uri.parse('https://www.aalto.fi');
  if (!await launchUrl(_url, mode: LaunchMode.platformDefault)) {
    throw Exception('Could not launch $_url');
  }
}
What have you tried so far?

Checked the docs and posts

Did you check FlutterFlow's Documentation for this topic?
Yes
2
5 replies