showFlag flag bridge actions onClick not working

Hi,
in our component, i am trying to have an action onClick that reloads the page.
but from the docs example, even just onClick: () => {console.log('')} returns this error.
Without the actions, the showFlag flag works fine. We additionally use custom ui atlaskit.

showFlag({
      id: "success-flag",
      title: "Smart",
      description:
        "New additional labels have been added. Please refresh the page to see the changes.",
      type: "success",
      actions: [
        {
          text: "Refresh page",
          onClick: () => {
            console.log("Refresh page");
          },
        },
      ],
      isAutoDismiss: true,
    });

Hello,
in what context are you using the Flag? I see nothing wrong with the snippet you included in your post.
Maybe it’s a problem with the usage of the flag. Please send more info.

Regard,
Adrian

Thank you.
It could be. The way we use it is to show success flag, after updating confluence page labels with content by line app

Hello,

can you maybe send your code, so I can see in what context the Flag is used.

Regard

Hello, Here is the detailed code in context.

Warn regards,
Tony