From d75c60477e4fc1f58e42b5be99ce86082cda7fa4 Mon Sep 17 00:00:00 2001 From: jer3k <99355997+jer3k@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:11:13 -0800 Subject: [PATCH] fix e2e test --- .../src/components/announcements/AnnouncementForm.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin-frontend/src/components/announcements/AnnouncementForm.vue b/admin-frontend/src/components/announcements/AnnouncementForm.vue index dd00b166..876eda1d 100644 --- a/admin-frontend/src/components/announcements/AnnouncementForm.vue +++ b/admin-frontend/src/components/announcements/AnnouncementForm.vue @@ -812,6 +812,8 @@ const handleSave = handleSubmit(async (values) => { } function validateFile(values) { + if (fileDisplayOnly.value) return true; //existing files are okay + if (!values.fileDisplayName && values.attachment) { setErrors({ fileDisplayName: 'File display text is required.' }); return false;