fix eval_prop

This commit is contained in:
Rizky 2024-07-15 12:55:39 +07:00
parent b8aac498d9
commit c1470a73e9
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -152,9 +152,9 @@ export const viEvalProps = (
if (typeof val === "function") {
script.props[name].fn = val;
// val = (...args: any[]) => {
// if (script) return script.props?.[name].fn(...args);
// };
val = (...args: any[]) => {
if (script) return script.props?.[name].fn(...args);
};
}
arg[name] = val;