mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 21:17:06 +00:00
fix: download with deps is downloading all files
This commit is contained in:
@@ -290,7 +290,7 @@ const selectedVersionDownloadFiles = computed<DownloadableFile[]>(() => {
|
||||
if (!selectedVersion.value) return []
|
||||
|
||||
return selectedVersion.value.files
|
||||
.filter((file) => file.file_type !== 'optional-resource-pack')
|
||||
.filter((file) => file === selectedPrimaryFile.value || file.file_type === 'required-resource-pack')
|
||||
.map((file) => ({
|
||||
href: createProjectDownloadUrl(file.url, {
|
||||
reason: props.downloadReason,
|
||||
|
||||
Reference in New Issue
Block a user