[HOTFIX] Only add ? to qs on download path

This commit is contained in:
Georges-Antoine Assi
2026-01-16 17:22:00 -05:00
parent c01254679d
commit 5c15fe2137

View File

@@ -122,7 +122,10 @@ export function getDownloadPath({
if (fileIDs.length > 0) {
queryParams.append("file_ids", fileIDs.join(","));
}
return `/api/roms/${rom.id}/content/${rom.fs_name}?${queryParams.toString()}`;
const queryString = queryParams.toString();
return `/api/roms/${rom.id}/content/${rom.fs_name}${
queryString ? `?${queryString}` : ""
}`;
}
export function getDownloadLink({