From 9c5906cce9d23449d07a3a18721e959c55815e61 Mon Sep 17 00:00:00 2001 From: Or Fleisher Date: Fri, 1 Oct 2021 11:30:18 -0400 Subject: [PATCH] Remove NODE_ENV conditional so it shows sequence timeline when NODE_ENV is production too --- .../src/sheetObjects/SheetObjectTemplate.ts | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts index 5bda7da..c84b62c 100644 --- a/theatre/core/src/sheetObjects/SheetObjectTemplate.ts +++ b/theatre/core/src/sheetObjects/SheetObjectTemplate.ts @@ -174,21 +174,17 @@ export default class SheetObjectTemplate { * Not available in core. */ getMapOfValidSequenceTracks_forStudio(): IDerivation { - 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(