Skip to content

Commit

Permalink
Fix remove widget not working in customizer (#31535)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored May 6, 2021
1 parent c0cb714 commit 92c3b5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default class SidebarAdapter {

_removeWidget( widget ) {
const settingId = widgetIdToSettingId( widget.id );
this.allSettings.remove( settingId );
this.api.remove( settingId );
}

_updateWidget( widget ) {
Expand Down

0 comments on commit 92c3b5e

Please sign in to comment.