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.
This commit is contained in:
Miguel Angel Simon Sierra
2026-07-27 19:52:06 +02:00
parent f3ab4469e7
commit 555d7f7a5c
@@ -249,7 +249,7 @@ function PropertyGroupHeaderRow({
// Same as the disclosure caret and the eye: a control in the label
// column owns its click, it does not also hit the track row behind it.
event.stopPropagation();
if (expandedElement && toggleTarget) {
if (toggleTarget) {
void onTogglePropertyGroupKeyframe?.(expandedElement, toggleTarget);
}
}}