@@ -501,10 +497,10 @@
{
label: $t('video_link_label'),
key: 'url',
- error: arrayError('videos.0.url'),
+ error: arrayError('videos'),
},
]"
- :error="arrayError('videos.0.url')"
+ :error="arrayError('videos')"
name="videos"
/>
@@ -513,7 +509,7 @@
@@ -533,7 +529,7 @@
@@ -650,9 +646,12 @@ const editField = (field) => {
});
};
function arrayError(key) {
- if (props?.errors[key]) {
- return props?.errors[key];
- }
- return null;
+ let errorMessage = '';
+ Object.keys(props?.errors).forEach((error) => {
+ if (error.startsWith(key)) {
+ errorMessage = props?.errors[error];
+ }
+ });
+ return errorMessage;
}
diff --git a/resources/js/Pages/Public/Bcr/Show.vue b/resources/js/Pages/Public/Bcr/Show.vue
index 53d79c9f..4f5850a9 100644
--- a/resources/js/Pages/Public/Bcr/Show.vue
+++ b/resources/js/Pages/Public/Bcr/Show.vue
@@ -41,7 +41,7 @@
{{ $t('description') }}
-
+
@@ -85,11 +85,11 @@
-
-
+
@@ -126,25 +126,25 @@