We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a1d8f5 + eac1442 commit 6737719Copy full SHA for 6737719
src/app/brand-kit/Assets/AssetCard.tsx
@@ -262,7 +262,13 @@ const AssetCard = props => {
262
<Box className={classes.downloadBox}>
263
<Typography className={classes.downloadButtons}>
264
{Object.keys(version.formats).map((format, index) => (
265
- <a key={index} href={version.formats[format].src} download style={{ textTransform: "uppercase", cursor: "pointer" }}>
+ <a
266
+ key={index}
267
+ href={version.formats[format].src ?? version.formats[format]}
268
+ download
269
+ target={format === "pdf" ? "_blank" : "_self"}
270
+ style={{ textTransform: "uppercase", cursor: "pointer" }}
271
+ >
272
{format} <SvgIcon sx={{ fontSize: "1.7rem" }} component={DownloadIcon} inheritViewBox />
273
</a>
274
))}
0 commit comments