Fix compound props showing wrong control indicator

This commit is contained in:
vezwork 2022-07-26 10:16:42 -04:00 committed by Elliot
parent 0ed466f404
commit 1459163420

View file

@ -101,7 +101,9 @@ export function useEditingToolsForCompoundProp<T extends SerializablePrimitive>(
pathToProp,
) as undefined | IPropPathToTrackIdTree
const hasOneOrMoreSequencedTracks = !!possibleSequenceTrackIds
const hasOneOrMoreSequencedTracks =
possibleSequenceTrackIds !== undefined &&
Object.keys(possibleSequenceTrackIds).length !== 0 // check if object is empty or undefined
const listOfDescendantTrackIds: SequenceTrackId[] = []
let hasOneOrMoreStatics = true