From f9a655dc4d89f0e947d2154d7088fc88832de74a Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Tue, 19 Mar 2024 16:07:35 +0400 Subject: [PATCH] Font Library: Reset notices when navigating away from the collection (#59981) Co-authored-by: Mamaduka Co-authored-by: mikachan Co-authored-by: annezazu Co-authored-by: madhusudhand --- .../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 0cfceb31deb96..8e008828e8428 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 @@ -361,6 +361,7 @@ function FontCollection( { slug } ) { isSmall onClick={ () => { setSelectedFont( null ); + setNotice( null ); } } aria-label={ __( 'Navigate to the previous view' ) } />