fixes: goToApp not running from runjs in viewer mode (#7770)

This commit is contained in:
Arpit 2023-10-11 13:42:25 +05:30 committed by GitHub
parent a23a1171f0
commit a74eb7eff1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -476,7 +476,7 @@ function executeActionWithDebounce(_ref, event, mode, customVariables) {
}
if (mode === 'view') {
_ref.props.navigate(url);
_ref.navigate(url);
} else {
if (confirm('The app will be opened in a new tab as the action is triggered from the editor.')) {
window.open(urlJoin(window.public_config?.TOOLJET_HOST, url));