Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow saving expressions with unset variables #4792

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Conversation

TrySound
Copy link
Member

Ref #4768 #4753

User can paste expression with not defined variable and should get it saved in case of accidental closing popover.

Now such expressions can be executed in builder and will be compiled with undefined instead of variables in published sites.

In the future we need to add global diagnostics to let users find such places faster.

Also fixed a couple of ui issues

  • react error about using button inside of button in data variables list
  • react error about using unknown middlewareData prop from floating-ui
Screenshot 2025-01-27 at 16 30 58

Ref #4768 #4753

User can paste expression with not defined variable
and should get it saved in case of accidental closing popover.

Now such expressions can be executed in builder and will be compiled
with undefined instead of variables in published sites.

In the future we need to add global diagnostics to let users find such
places faster.

Also fixed a couple of ui issues
- react error about using button inside of button in data variables list
- react error about using unknown middlewareData prop from floating-ui
@TrySound TrySound requested review from kof and johnsicili January 27, 2025 09:37
@TrySound TrySound merged commit 6b04c97 into main Jan 27, 2025
15 checks passed
@TrySound TrySound deleted the validation branch January 27, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants