Add fallback content-type to pass typecheck
This commit is contained in:
@@ -36,7 +36,7 @@ export function ExportCarDialog({
|
|||||||
const saveRes = await saveBytesToDisk(
|
const saveRes = await saveBytesToDisk(
|
||||||
'repo.car',
|
'repo.car',
|
||||||
downloadRes.data,
|
downloadRes.data,
|
||||||
downloadRes.headers['content-type'],
|
downloadRes.headers['content-type'] || 'application/vnd.ipld.car',
|
||||||
)
|
)
|
||||||
|
|
||||||
if (saveRes) {
|
if (saveRes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user