From a2522b2ad48024e970caedbe300134e605097d15 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 19 Mar 2024 10:30:38 +0400 Subject: [PATCH] Font Library: Reset notices when navigating away from the collection --- .../global-styles/font-library-modal/font-collection.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js index bc8d99091ad7f9..4368d72645959b 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/font-collection.js @@ -344,6 +344,7 @@ function FontCollection( { slug } ) { size="small" onClick={ () => { setSelectedFont( null ); + setNotice( null ); } } label={ __( 'Back' ) } />