Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 1020904

Browse files
committed
Fix #450, Fix 449
1 parent 2507170 commit 1020904

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pages/_type/_id/version.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,8 @@ export default {
773773
await Promise.all([
774774
this.$axios.get(`version/${this.version.id}`, this.$auth.headers),
775775
this.$axios.get(
776-
`project/${this.version.project_id}/version?featured=true`
776+
`project/${this.version.project_id}/version?featured=true`,
777+
this.$auth.headers
777778
),
778779
])
779780
).map((it) => it.data)

pages/create/project.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,14 +891,14 @@ export default {
891891
},
892892
],
893893
categories: this.categories,
894-
issues_url: this.issues_url,
895-
source_url: this.source_url,
896-
wiki_url: this.wiki_url,
894+
issues_url: this.issues_url ? this.issues_url : null,
895+
source_url: this.source_url ? this.source_url : null,
896+
wiki_url: this.wiki_url ? this.wiki_url : null,
897897
discord_url: this.discord_url,
898898
client_side: this.clientSideType.toLowerCase(),
899899
server_side: this.serverSideType.toLowerCase(),
900900
license_id: this.license ? this.license.short : 'arr',
901-
license_url: this.license_url,
901+
license_url: this.license_url ? this.license_url : null,
902902
is_draft: this.draft,
903903
donation_urls: this.donationPlatforms.map((it, index) => {
904904
return {

0 commit comments

Comments
 (0)