Merge pull request #27 from juniorxsound/main

This commit is contained in:
Aria 2021-10-01 17:42:41 +02:00 committed by GitHub
commit f9817a5fc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,21 +174,17 @@ export default class SheetObjectTemplate {
* Not available in core. * Not available in core.
*/ */
getMapOfValidSequenceTracks_forStudio(): IDerivation<IPropPathToTrackIdTree> { getMapOfValidSequenceTracks_forStudio(): IDerivation<IPropPathToTrackIdTree> {
if (process.env.NODE_ENV !== 'production') { return this._cache.get('getMapOfValidSequenceTracks_forStudio', () =>
return this._cache.get('getMapOfValidSequenceTracks_forStudio', () => this.getArrayOfValidSequenceTracks().map((arr) => {
this.getArrayOfValidSequenceTracks().map((arr) => { let map = {}
let map = {}
for (const {pathToProp, trackId} of arr) { for (const {pathToProp, trackId} of arr) {
set(map, pathToProp, trackId) set(map, pathToProp, trackId)
} }
return map return map
}), }),
) )
} else {
return new ConstantDerivation({})
}
} }
getDefaultsAtPointer( getDefaultsAtPointer(