diff --git a/app/vue/src/server/iframe.html.js b/app/vue/src/server/iframe.html.js
index bfcc2db58ee3..c49dc810b25c 100644
--- a/app/vue/src/server/iframe.html.js
+++ b/app/vue/src/server/iframe.html.js
@@ -29,7 +29,9 @@ const urlsFromAssets = assets => {
.forEach(key => {
let asset = assets[key];
if (typeof asset === 'string') {
- urls[getExtensionForFilename(asset)].push(asset);
+ if (urls[getExtensionForFilename(asset)]) {
+ urls[getExtensionForFilename(asset)].push(asset);
+ }
} else {
if (!Array.isArray(asset)) {
asset = [asset];