From 4f5d8251573eb6261abcde643b3ea7989880cf82 Mon Sep 17 00:00:00 2001 From: Barry Gitarts Date: Tue, 30 Apr 2019 15:06:55 -0400 Subject: [PATCH] fix display project when no media assets --- src/components/projects/Project.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/projects/Project.jsx b/src/components/projects/Project.jsx index b8145f2..938d58a 100644 --- a/src/components/projects/Project.jsx +++ b/src/components/projects/Project.jsx @@ -174,7 +174,7 @@ const getMediaSrc = assets => { const { media } = getProjectManifest(assets) if (media.type.includes('video')) { if (media.url) return media.url - if (media.file) { + if (media.file && media.file !== '/root/') { return formatMedia( assets.find(a => a.name === getFile(media.file)).content )