fix display project when no media assets

This commit is contained in:
Barry Gitarts 2019-04-30 15:06:55 -04:00
parent 43a2725109
commit 4f5d825157
1 changed files with 1 additions and 1 deletions

View File

@ -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
)