diff --git a/src/dialogs/attachment/CopyAttachmentDialog.vue b/src/dialogs/attachment/CopyAttachmentDialog.vue index 3931f851..785c73f3 100644 --- a/src/dialogs/attachment/CopyAttachmentDialog.vue +++ b/src/dialogs/attachment/CopyAttachmentDialog.vue @@ -88,7 +88,7 @@ export default { this.succes = true if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) } // Wait for the user to read the feedback then close the model diff --git a/src/dialogs/attachment/DeleteAttachmentDialog.vue b/src/dialogs/attachment/DeleteAttachmentDialog.vue index fe2eb88b..f243cfa7 100644 --- a/src/dialogs/attachment/DeleteAttachmentDialog.vue +++ b/src/dialogs/attachment/DeleteAttachmentDialog.vue @@ -84,7 +84,7 @@ export default { this.succes = true // Lets refresh the attachment list if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) this.filterdAttachments = publicationStore.publicationItem.attachments.filter((attachment) => { return parseInt(attachment) !== parseInt(publicationStore.attachmentItem.id) }) fetch( diff --git a/src/dialogs/attachment/DepublishAttachmentDialog.vue b/src/dialogs/attachment/DepublishAttachmentDialog.vue index 71f90eb5..42e76980 100644 --- a/src/dialogs/attachment/DepublishAttachmentDialog.vue +++ b/src/dialogs/attachment/DepublishAttachmentDialog.vue @@ -85,7 +85,7 @@ export default { this.succes = true if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) } // Wait for the user to read the feedback then close the model diff --git a/src/dialogs/attachment/PublishAttachmentDialog.vue b/src/dialogs/attachment/PublishAttachmentDialog.vue index 92c0fa25..b76bad7d 100644 --- a/src/dialogs/attachment/PublishAttachmentDialog.vue +++ b/src/dialogs/attachment/PublishAttachmentDialog.vue @@ -83,7 +83,7 @@ export default { this.succes = true if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) } // Wait for the user to read the feedback then close the model diff --git a/src/modals/attachment/AddAttachmentModal.vue b/src/modals/attachment/AddAttachmentModal.vue index 619cb6bb..ea170e96 100644 --- a/src/modals/attachment/AddAttachmentModal.vue +++ b/src/modals/attachment/AddAttachmentModal.vue @@ -171,7 +171,7 @@ export default { reset() // Lets refresh the attachment list if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) fetch( `/index.php/apps/opencatalogi/api/publications/${publicationStore.publicationItem.id}`, diff --git a/src/modals/attachment/EditAttachmentModal.vue b/src/modals/attachment/EditAttachmentModal.vue index c64464f3..06d619ea 100644 --- a/src/modals/attachment/EditAttachmentModal.vue +++ b/src/modals/attachment/EditAttachmentModal.vue @@ -101,7 +101,7 @@ export default { this.success = response.ok // Lets refresh the catalogiList if (publicationStore.publicationItem) { - publicationStore.getPublicationAttachments(publicationStore.publicationItem) + publicationStore.getPublicationAttachments(publicationStore.publicationItem?.id) } response.json().then((data) => { publicationStore.setAttachmentItem(data)