mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
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:
@@ -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);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user