Skip to content

Commit

Permalink
Fixed bug with selection manager
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Sep 23, 2024
1 parent b3587c3 commit 47c92d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/components/browser-editor/BrowserRecents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function BrowserRecents() {
});

useEffect(() => {
if (projects.isFetched) {
if (projects.isFetched && selectionManager) {
if (!projects.data || !projects.data.length) {
selectionManager.select("examples");
}
Expand Down

0 comments on commit 47c92d6

Please sign in to comment.