From bb1f3668c2a43426e1899d74bd278989b787d024 Mon Sep 17 00:00:00 2001 From: Luigi Teschio Date: Tue, 3 Dec 2024 10:12:26 +0100 Subject: [PATCH] fix fallback value --- packages/fields/src/actions/duplicate-template-part.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fields/src/actions/duplicate-template-part.tsx b/packages/fields/src/actions/duplicate-template-part.tsx index 5632f9b15d4ea..44fcbad21f073 100644 --- a/packages/fields/src/actions/duplicate-template-part.tsx +++ b/packages/fields/src/actions/duplicate-template-part.tsx @@ -63,7 +63,7 @@ const duplicateTemplatePart: Action< TemplatePart > = { onCreate={ onTemplatePartSuccess } onError={ closeModal } confirmLabel={ _x( 'Duplicate', 'action label' ) } - closeModal={ closeModal ?? ( () => void 0 ) } + closeModal={ closeModal ?? ( () => {} ) } /> ); },