From 7bf22a5f9b3b9db7bc60ad1373870cfc9bf68800 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Thu, 2 Sep 2021 14:32:33 +0200 Subject: [PATCH] Small bugfix --- .../propEditors/utils/useEditingToolsForPrimitiveProp.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx b/theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx index 88696f4..97984c0 100644 --- a/theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx +++ b/theatre/studio/src/panels/DetailPanel/propEditors/utils/useEditingToolsForPrimitiveProp.tsx @@ -147,8 +147,8 @@ export function useEditingToolsForPrimitiveProp< ].sequence.tracksByObject[obj.address.objectKey].trackData[ sequenceTrcackId ], - )! - if (track.keyframes.length === 0) return {} + ) + if (!track || track.keyframes.length === 0) return {} const pos = val(obj.sheet.getSequence().positionDerivation) @@ -176,7 +176,7 @@ export function useEditingToolsForPrimitiveProp< } } }, - [], + [sequenceTrcackId], ) let shade: Shade