Fix version editing

This commit is contained in:
Jai A
2022-05-15 13:06:08 -07:00
parent dc11340faf
commit 63b2bb55a1

View File

@@ -763,9 +763,11 @@ export default {
this.version.primary_file = ['sha1', this.primaryFile.hashes.sha1]
const copyVersion = JSON.parse(JSON.stringify(this.version))
delete copyVersion.downloads
await this.$axios.patch(
`version/${this.version.id}`,
this.version,
copyVersion,
this.$auth.headers
)