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,
});