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

fix: Remove unused defaults from the Calculate component #3522

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Aug 16, 2024

What does this PR do?

  • Fixes a bug I hit when working on search
  • Current behaviour - when I update the formula of a calculate field, unused defaults are retained (these were showing up in search results)
  • New behaviour - when I update the formula of a calculate field, unused defaults are removed from the component's data

Tests

I did spend a bit of time trying to get tests to work here, without much success.

The issues I was hitting was that both user.type() and user.keyboard() were having issues correctly populating the formula field. I'm not sure if this is a formik, mathjs or a react-testing-library issue (likely a combination!).

image

@DafyddLlyr DafyddLlyr requested a review from a team August 16, 2024 07:07
Copy link

github-actions bot commented Aug 16, 2024

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr merged commit 04ed5fb into main Aug 16, 2024
12 checks passed
@DafyddLlyr DafyddLlyr deleted the dp/calculate-clear-old-defaults branch August 16, 2024 07:56
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.

2 participants