bcgov / invasivesbc

Inventory and database repository for the creation, treatment, and report on BC Invasive plants and animals.
Apache License 2.0
13 stars 4 forks source link

[INV-3687] PMP Validation #3705

Closed LocalNewsTV closed 10 hours ago

LocalNewsTV commented 15 hours ago

Overview

This PR includes the following proposed change(s):

[!IMPORTANT] This fix is symptomatic of a larger issue with re-rendering not working properly for props.rawErrorsin the custom validation. When the rawErrors array is updated, the FieldTemplates are not re-rendering as expected. However, since most errors are self-contained, the change events trigger a re-render of the component, which resolves the issue. This behavior doesn't apply to the PMP not in dropdown and Pest Management Plans inputs, as these are independent from each other but share a custom validation rule. So when the error is removed, a re-render is not created.

Smaller Fixes

FormContainer.tsx

Closes #3687 Ticket #3706 created to address the overarching Render concerns

sonarcloud[bot] commented 15 hours ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud