Skip to content

Commit 3665402

Browse files
committed
only download data assets
1 parent e856ae1 commit 3665402

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/essence/Ancillary/Description.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,12 @@ const Description = {
11321132
activeLayer.feature.assets[assetKeys[i]]
11331133
const link = asset?.href
11341134
const title = asset?.title
1135-
if (link !== null && link !== '')
1135+
const roles = asset?.roles
1136+
if (
1137+
link !== null &&
1138+
link !== '' &&
1139+
(!roles || roles.indexOf('data') !== -1)
1140+
)
11361141
links.push({
11371142
name: `<span style='display: flex; justify-content: space-between;'>${title}<i class='mdi mdi-open-in-new mdi-14px' style='margin-left: 4px; margin-top: 1px;'></i></span>`,
11381143
link: link,

0 commit comments

Comments
 (0)