Skip to content

Commit 0c134c0

Browse files
committed
refactor(field-mixin): Added description to make removing server-errors more understandable
1 parent 50cea9b commit 0c134c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generator/templates/Default/src/components/crud/fields/FieldMixin.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ export default {
7070
getServerError() {
7171
const error = this.$store.getters['error/find'](this.validationField || this.field);
7272
if (error) {
73+
// ServerError should be removed after it had been appeared,
74+
// else the ServerError keep existing and appearing when the user tries to navigate to a different form
7375
this.removeServerError(this.field);
7476
return error;
7577
}

0 commit comments

Comments
 (0)