Skip to content

Commit 1ef3999

Browse files
committed
fix(pages): add favorite pages section init
1 parent 455dca0 commit 1ef3999

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/client/src/boot/ui.client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ export default boot(({ store }) => {
2525
internals.localStorage.getItem('currentPathExpanded') !== 'false';
2626
uiStore(store).recentPagesExpanded =
2727
internals.localStorage.getItem('recentPagesExpanded') !== 'false';
28+
uiStore(store).favoritePagesExpanded =
29+
internals.localStorage.getItem('favoritePagesExpanded') === 'true';
2830
uiStore(store).selectedPagesExpanded =
2931
internals.localStorage.getItem('selectedPagesExpanded') === 'true';
3032

3133
uiStore(store).currentPathWeight =
3234
parseFloat(internals.localStorage.getItem('currentPathWeight')!) || 1;
3335
uiStore(store).recentPagesWeight =
3436
parseFloat(internals.localStorage.getItem('recentPagesWeight')!) || 1;
37+
uiStore(store).favoritePagesWeight =
38+
parseFloat(internals.localStorage.getItem('favoritePagesWeight')!) || 1;
3539
uiStore(store).selectedPagesWeight =
3640
parseFloat(internals.localStorage.getItem('selectedPagesWeight')!) || 1;
3741
});

0 commit comments

Comments
 (0)