@@ -180,9 +185,7 @@
variant="outlined"
>
- Choose File
+ Choose File
@@ -303,7 +306,6 @@ const isPreviewVisible = computed(() => announcementsToPreview.value?.length);
const isConfirmDialogVisible = ref(false);
const attachment = ref(null);
-console.log(announcement)
const { handleSubmit, setErrors, errors, meta, values } = useForm({
initialValues: {
title: announcement?.title || '',
@@ -542,8 +544,16 @@ const handleSave = handleSubmit(async (values) => {
await emits('save', {
...values,
- published_on: values.published_on ? convert(LocalDate.from(nativeJs(values.published_on))).toDate().toISOString() : undefined,
- expires_on: values.expires_on ? convert(LocalDate.from(nativeJs(values.expires_on))).toDate().toISOString() : undefined,
+ published_on: values.published_on
+ ? convert(LocalDate.from(nativeJs(values.published_on)))
+ .toDate()
+ .toISOString()
+ : undefined,
+ expires_on: values.expires_on
+ ? convert(LocalDate.from(nativeJs(values.expires_on)))
+ .toDate()
+ .toISOString()
+ : undefined,
linkDisplayName: isEmpty(values.linkDisplayName)
? undefined
: values.linkDisplayName,
@@ -554,7 +564,7 @@ const handleSave = handleSubmit(async (values) => {
});
-