mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-31 15:20:32 +08:00
chore(actions-core): Changed Link Action function declaration.
This commit is contained in:
parent
a9bfe65f42
commit
d79d832d48
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user