Skip to content

Commit d653f74

Browse files
author
FalkWolsky
committed
Updating Query Library Function update
1 parent 128d31f commit d653f74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/packages/lowcoder/src/comps/queries/libraryQuery.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ export const LibraryQuery = class extends LibraryQueryBase {
172172
console.log("script: " + script);
173173
console.log("context: ", context);
174174

175-
// Pass script directly to evalFunc without wrapping
175+
// Wrap the script in a return statement to ensure it returns a value
176+
// const wrappedScript = `return (${script});`;
176177
const data = await evalFunc(script, context, undefined, options);
177178
return {
178179
data: data,

0 commit comments

Comments
 (0)