Skip to content

Commit

Permalink
refactor: renamed children to _children to indicate that it's not bei…
Browse files Browse the repository at this point in the history
…ng used and added a comment

GitOrigin-RevId: 8cab3811cf0ebfaac9535ad60beed7b32615bc68
  • Loading branch information
abbas-nazar authored and actions-user committed Oct 17, 2024
1 parent 6d49934 commit 1b965d4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ Help
)}
players={{
render: (_props) => {
const { children, ...otherProps } = _props;
// Exclude 'children' from props to avoid React warnings about missing keys,
// as they are already omitted inside Player and not needed here.
const { children: _children, ...otherProps } = _props;
return <Players {...otherProps} studioCtx={studioCtx} />;
},
}}
Expand Down

0 comments on commit 1b965d4

Please sign in to comment.