From feaa1d5312a7c9ed6335e12524383559f0466040 Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 24 May 2024 20:58:31 +0900 Subject: [PATCH] Template Actions: Fix console error when resetting template (#61921) Co-authored-by: t-hamano Co-authored-by: ntsekouras --- 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 }