Skip to content

Commit afa5eac

Browse files
fix (design library): always reset selected category when page loads
1 parent 913f8b6 commit afa5eac

File tree

1 file changed

+4
-0
lines changed
  • src/components/modal-design-library

1 file changed

+4
-0
lines changed

src/components/modal-design-library/modal.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ const popoverProps = {
4040
shift: true,
4141
}
4242

43+
// Reset the local storage values for the design library block list.
44+
// This is to make sure that the design library shows "all" at the start.
45+
localStorage?.setItem( 'stk__design_library__block-list__selected', '' )
46+
4347
export const ModalDesignLibrary = props => {
4448
const {
4549
backgroundModeColorScheme, containerModeColorScheme, colorSchemesCollection,

0 commit comments

Comments
 (0)