bloom-housing / bloom

component-based web framework for affordable housing management
Apache License 2.0
34 stars 24 forks source link

fix: fetch ami chart with the proper id #4259

Closed ludtkemorgan closed 1 month ago

ludtkemorgan commented 1 month ago

Description

While bug bashing a bug was noticed in firefox during the listing creation flow on adding units. Specifically when selecting an AMI chart the data isn't getting populated.

I am unsure why it happens to exist in Firefox but the issue is because of the order of values getting set. In Chrome and other browsers during the onChange event the value for amiChartID is set first whereas in firefox the value is not set by the time we get to the place where we need to know the id. This is resolved by getting the value directly from the select onChange rather than relying on the value we get from the useWatch function.

How Can This Be Tested/Reviewed?

This bug only exists in firefox so it is recommended to test there as well as other browsers.

Author Checklist:

Review Process:

netlify[bot] commented 1 month ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit 4aa1ce99f5666897c9fa012f94527a0f522a19ef
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66c514b95709de0008dda2d5
Deploy Preview https://deploy-preview-4259--partners-bloom-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 1 month ago

Deploy Preview for bloom-exygy-dev ready!

Name Link
Latest commit 4aa1ce99f5666897c9fa012f94527a0f522a19ef
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/66c514b92c67110008a5e9ec
Deploy Preview https://deploy-preview-4259--bloom-exygy-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.