Skip to content

Commit

Permalink
fix var error in client-handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Dec 24, 2023
1 parent 1e2a699 commit 16daede
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imports/client-handler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export async function evalClientHandler({
}> {
try {
console.log('evalClientHandler', 'value', value);
const evalResult = (new Function(`return ${value}`))();
console.log('evalClientHandler', 'evalResult', evalResult);
// const evalResult = (new Function(`return ${value}`))();
// console.log('evalClientHandler', 'evalResult', evalResult);
const evalResult = eval(value);
if (typeof evalResult === 'function') {
return {
data: await evalResult({ deep, gql, ...input }),
Expand Down

0 comments on commit 16daede

Please sign in to comment.