From 1459163420ac7d2fdc0bdadbf8c2803dac639b3a Mon Sep 17 00:00:00 2001 From: vezwork Date: Tue, 26 Jul 2022 10:16:42 -0400 Subject: [PATCH] Fix compound props showing wrong control indicator --- .../studio/src/propEditors/useEditingToolsForCompoundProp.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theatre/studio/src/propEditors/useEditingToolsForCompoundProp.tsx b/theatre/studio/src/propEditors/useEditingToolsForCompoundProp.tsx index da20a60..2f88560 100644 --- a/theatre/studio/src/propEditors/useEditingToolsForCompoundProp.tsx +++ b/theatre/studio/src/propEditors/useEditingToolsForCompoundProp.tsx @@ -101,7 +101,9 @@ export function useEditingToolsForCompoundProp( 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