- Read labor requirements via useAllFormFields + reduceFieldsToValues: useField on an array path returns the row count, not rows, so requirementList.flatMap threw and raised the "Failed to load labor data" toast on every page load - Use valid REST where syntax (where[structure][equals]= plus positionType/status filters); the dot-notation key was silently ignored and returned every staffing doc unfiltered - Match staffing rows by raw relationship id at depth=0; m.laborClassification?.id never matched numeric ids - Validate fetch responses and show a distinct load-failure message instead of the misleading "no classifications configured" empty state - Give the Apply button type="button" so it stops submitting the whole document form on every click |
||
|---|---|---|
| .. | ||
| LaborCrewField.tsx | ||