chore(actions-core): Changed Link Action function declaration.

This commit is contained in:
Sandile 2022-02-11 16:45:00 +02:00
parent a9bfe65f42
commit d79d832d48

View File

@ -16,7 +16,7 @@
import { type } from '@lowdefy/helpers';
const Link = ({ methods: { link }, params }) => {
function Link({ methods: { link }, params }) {
const linkParams = type.isString(params) ? { pageId: params } : params;
try {
link(linkParams);
@ -24,6 +24,6 @@ const Link = ({ methods: { link }, params }) => {
console.log(error);
throw new Error(`Invalid Link, check action params. Received "${JSON.stringify(params)}".`);
}
};
}
export default Link;