Skip to content

Commit

Permalink
Call onChangeSectionExpanded conditionally (#33618)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored Jul 22, 2021
1 parent 059339d commit 1d5266e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/customize-widgets/src/controls/sidebar-section.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function getSidebarSection() {
..._args,
completeCallback() {
controls.forEach( ( control ) => {
control.onChangeSectionExpanded( expanded, args );
control.onChangeSectionExpanded?.( expanded, args );
} );
_args.completeCallback?.();
},
Expand Down

0 comments on commit 1d5266e

Please sign in to comment.