Skip to content

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 10, 2025

This pull request attempts to fix an issue where errors in Replicator/Grid fields would be displayed on the wrong set/row after a set/row has been removed.

This PR attempts to fix it by updating the indexes in error keys whenever sets/rows are removed.

It's a bit gnarly... I'm not entirely convinced this is the right solution, so let me know if you can think of a better one.

Fixes #10704.
Fixes #11286.

return acc;
}, {});
this.$store.commit(`publish/${this.storeName}/setErrors`, errors);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like publish/storeName/setErrors updates the errors in the Vuex state, but it doesn't affect the errors property in the PublishForm component.... not sure if that'll end up being an issue? 🤔

@jasonvarga
Copy link
Member

Grid/Replicator/Bard/etc is fairly different in v6 - let's see if this is still an issue and fix it there instead.

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.

Validation errors trickle down replicator Validation errors on Grid items are hard linked to the item index instead of the item itself

3 participants