Skip to content

Commit

Permalink
Set null if the compositionName is not defined in assets
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryLafranc committed Feb 8, 2019
1 parent 412cf1b commit 632b683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nexrender-core/src/tasks/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 632b683

Please sign in to comment.