Skip to content

Commit

Permalink
Fix global error output #248
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Jan 2, 2025
1 parent 05fe879 commit f22d048
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/assets/js/components/Common/GlobalFormError.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-alert
v-if="hasError"
type="danger"
type="error"
class="mt-2 mb-0"
>
<ul
Expand Down
1 change: 0 additions & 1 deletion web/assets/js/components/ContentCollapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
>
<v-skeleton-loader
v-if="isLoading"
v-bind="attrs"
type="text"
color="secondary"
:width="titleWidth"
Expand Down
2 changes: 1 addition & 1 deletion web/assets/js/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function getViolationsFeedback(

if (isResultInverted) {
for (const [fieldName, errorMessageArray] of Object.entries(validationErrors)) {
if (!fields.includes(fieldName) && fieldName !== 'global') {
if (!fields.includes(fieldName)) {
message += ` ${errorMessageArray!.join(' ')}`;
}
}
Expand Down

0 comments on commit f22d048

Please sign in to comment.