Skip to content

Commit

Permalink
Merge pull request #128 from ConductionNL/feature/DIMOC-309/dashboard…
Browse files Browse the repository at this point in the history
…-publications

fixed creating publication on dashboard
  • Loading branch information
RalkeyOfficial authored Nov 1, 2024
2 parents eb5fb4a + 363ca84 commit 11d4e46
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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 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

0 comments on commit 11d4e46

Please sign in to comment.