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.
1 parent 1d16db9 commit 781ac65Copy full SHA for 781ac65
src/core/contentstack.js
@@ -52,7 +52,9 @@ class Contentstack {
52
if (item._content_type_uid == 'sys_assets' && item.filename) {
53
54
const correspondingAsset = entry[key].children.find(child => child.attrs['asset-uid'] === item.uid);
55
- correspondingAsset.attrs['asset-link'] = item.url;
+ if (correspondingAsset) {
56
+ correspondingAsset.attrs['asset-link'] = item.url;
57
+ }
58
}
59
});
60
0 commit comments