From b5df3f3c5e6f6fbb1a5ca2c18af0a6a0c39a4046 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 0cfceb31deb969..8e008828e8428f 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' ) } />