From 478316dd3968a42fc3e247ea4872c657051792d1 Mon Sep 17 00:00:00 2001 From: Aki Hamano Date: Fri, 24 May 2024 12:18:47 +0900 Subject: [PATCH] Template Actions: Fix console error when resetting template --- packages/editor/src/components/post-actions/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-actions/actions.js b/packages/editor/src/components/post-actions/actions.js index f6a28c3421356..a4937dc6a75d7 100644 --- a/packages/editor/src/components/post-actions/actions.js +++ b/packages/editor/src/components/post-actions/actions.js @@ -835,8 +835,8 @@ const resetTemplateAction = { } await onConfirm( items ); onActionPerformed?.( items ); + setIsBusy( false ); closeModal(); - isBusy( false ); } } isBusy={ isBusy } disabled={ isBusy }