Closed cherniavskii closed 1 year ago
This seems to fix the issue. I can submit a PR
Yep, good catch. This is a regression so we're going to add an integration test. We'll deal with, unless you feel particularly compelled to dig into the test suite π
We'll deal with
Sure, thanks!
We'll deal with
Sure, thanks!
Thanks for the catch, Andrew π
Duplicates
Latest version
Steps to reproduce πΉ
I've been following https://mui.com/toolpad/getting-started/quickstart/ and noticed that query transformation doesn't work
Steps:
Current behavior π―
Error in the query preview
Expected behavior π€
No errors in the query preview
Context π¦
I looked into it quickly and the error seems to be coming from
https://github.com/mui/mui-toolpad/blob/217a17e7dc6f581210a175422cf86839a627fa21/packages/toolpad-app/src/toolpadDataSources/applyTransform.ts#L10
Given the transform function
(data) => { return data.message }
, the evaluated code looks like:Shouldn't the transform function be wrapped in parenthesis?
This seems to fix the issue. I can submit a PR
Your environment π
No response