Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into hotfix/load-di…
Browse files Browse the repository at this point in the history
…rectory
  • Loading branch information
rubenvdlinde committed Nov 1, 2024
2 parents f7d2484 + 463c490 commit 6b6a889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/sidebars/dashboard/DashboardSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default {
// step 2: get the full publicationType's from the publicationTypeIds
const filteredPublicationType = this.publicationTypeList
.filter((publicationType) => selectedCatalogus.publicationType.includes(publicationType.source))
.filter((publicationType) => selectedCatalogus.publicationTypes.map(String).includes(publicationType.id.toString()))
return {
options: filteredPublicationType.map((publicationType) => ({
Expand Down Expand Up @@ -385,7 +385,7 @@ export default {
body: JSON.stringify({
...this.publicationItem,
catalog: this.catalogi.value.id,
publicationType: this.publicationType.value.source,
publicationType: this.publicationType.value.id,
}),
},
)
Expand All @@ -401,7 +401,7 @@ export default {
publicationStore.refreshPublicationList()
// Wait for the user to read the feedback then close the model
setTimeout(this.cleanup, 2000)
if (!files.value && files.value.length === 0) {
if (!files.value && files.value?.length === 0) {
setTimeout(this.success = null, 2000)
}
})
Expand Down Expand Up @@ -445,8 +445,6 @@ export default {
body: JSON.stringify({
...publicationItem,
attachments: [...publicationItem.attachments, response.data.id],
catalog: publicationItem.catalogi.id,
publicationType: publicationItem.publicationType,
}),
},
)
Expand Down
2 changes: 1 addition & 1 deletion src/views/publications/PublicationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ import { ref } from 'vue'
<div class="filesListDragDropNoticeWrapperIcon">
<TrayArrowDown :size="48" />
<h3 class="filesListDragDropNoticeTitle">
Sleep bestanden hierheen om ze te uploaden
Sleep bestand hierheen om te uploaden
</h3>
</div>

Expand Down

0 comments on commit 6b6a889

Please sign in to comment.