Skip to content

Commit 555d7f7

Browse files
committed
refactor(studio): drop the dead expandedElement guard
toggleTarget is derived from expandedElement, so it can only be set when expandedElement is. The extra check read as if the two could disagree.
1 parent f3ab446 commit 555d7f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/studio/src/player/components/TimelineTrackHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function PropertyGroupHeaderRow({
249249
// Same as the disclosure caret and the eye: a control in the label
250250
// column owns its click, it does not also hit the track row behind it.
251251
event.stopPropagation();
252-
if (expandedElement && toggleTarget) {
252+
if (toggleTarget) {
253253
void onTogglePropertyGroupKeyframe?.(expandedElement, toggleTarget);
254254
}
255255
}}

0 commit comments

Comments
 (0)