Skip to content

Commit

Permalink
Remove NODE_ENV conditional so it shows sequence timeline when NODE_E…
Browse files Browse the repository at this point in the history
…NV is production too
  • Loading branch information
juniorxsound committed Oct 1, 2021
1 parent 732975d commit 9c5906c
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions theatre/core/src/sheetObjects/SheetObjectTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,17 @@ export default class SheetObjectTemplate {
* Not available in core.
*/
getMapOfValidSequenceTracks_forStudio(): IDerivation<IPropPathToTrackIdTree> {
if (process.env.NODE_ENV !== 'production') {
return this._cache.get('getMapOfValidSequenceTracks_forStudio', () =>
this.getArrayOfValidSequenceTracks().map((arr) => {
let map = {}
return this._cache.get('getMapOfValidSequenceTracks_forStudio', () =>
this.getArrayOfValidSequenceTracks().map((arr) => {
let map = {}

for (const {pathToProp, trackId} of arr) {
set(map, pathToProp, trackId)
}
for (const {pathToProp, trackId} of arr) {
set(map, pathToProp, trackId)
}

return map
}),
)
} else {
return new ConstantDerivation({})
}
return map
}),
)
}

getDefaultsAtPointer(
Expand Down

0 comments on commit 9c5906c

Please sign in to comment.