Skip to content

Commit

Permalink
fix create collection media
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Oct 7, 2024
1 parent 6d895ed commit 7f57bc8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions resources/js/components/pages/create/CreateCollection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -423,12 +423,13 @@ const validation = yup.object({
});
const simpleAttributes = () => {
const media = [
{
const media: { [key: string]: string }[] = [];
if (imageUrl.value) {
media.push({
url: imageUrl.value,
type: imageType.value,
},
];
});
}
if (bannerUrl.value) {
media.push({
Expand Down

0 comments on commit 7f57bc8

Please sign in to comment.