Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pods: Keep ports aligned with their errors in PodCreateModal
The "publish" and "validationFailed.publish" arrays must always be aligned. The "validateForm" function was erronously filtering out undefined entries in validationFailed.publish. Those undefined entries correspond to empty slots in the "publish" array and are left behind by the DynamicListForm component when removing rows in the UI. It does that for its own convenience and we must respect that. The observable result of filtering out these entries was that validation errors would shift to unrelated publish entries. If that unrelated entry was a empty slot, it would thereafter never be updated and keep its validation error forever, which would keep the "Create" button disabled forever.
- Loading branch information