From 632b683fcc3faa8deda02831a64d05b7cde48351 Mon Sep 17 00:00:00 2001 From: Guillaume Lafranceschina Date: Fri, 8 Feb 2019 14:32:28 +0100 Subject: [PATCH] Set null if the compositionName is not defined in assets --- packages/nexrender-core/src/tasks/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nexrender-core/src/tasks/script.js b/packages/nexrender-core/src/tasks/script.js index bb1ae432..5191286d 100644 --- a/packages/nexrender-core/src/tasks/script.js +++ b/packages/nexrender-core/src/tasks/script.js @@ -3,8 +3,8 @@ const path = require('path') const script = require('../assets/nexrender.jsx') const wrapLayer = (layerName, layerIndex, compositionName) => (layerName - ? `nexrender.layerName('${layerName}', ${compositionName !== undefined ? `'${compositionName}'`})` - : `nexrender.layerIndex('${layerIndex}', ${compositionName !== undefined ? `'${compositionName}'`})` + ? `nexrender.layerName('${layerName}', ${compositionName !== undefined ? `'${compositionName}'` : `null`})` + : `nexrender.layerIndex('${layerIndex}', ${compositionName !== undefined ? `'${compositionName}'` : `null`})` ) const wrapFootage = ({ layerName, layerIndex, dest, compositionName }) => (`(function() {