Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'Clear customizations' button to template list page #36802

Merged
merged 3 commits into from
Nov 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Correctly 'allowUndo' default
  • Loading branch information
Mamaduka committed Nov 24, 2021
commit 650d3f89d79cec0426466e5834aa1dcbc5ce753f
2 changes: 1 addition & 1 deletion packages/edit-site/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export function setIsListViewOpened( isOpen ) {
* @param {boolean} [options.allowUndo] Whether to allow the user to undo
* reverting the template. Default true.
*/
export function* revertTemplate( template, { allowUndo = false } = {} ) {
export function* revertTemplate( template, { allowUndo = true } = {} ) {
if ( ! isTemplateRevertable( template ) ) {
yield controls.dispatch(
noticesStore,
Expand Down