We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61943b commit f334203Copy full SHA for f334203
packages/app/src/app/pages/Dashboard/Content/routes/Repositories/useFilteredItems.ts
@@ -20,10 +20,10 @@ export const useFilteredItems = (params: Params) => {
20
},
21
} = useOvermind();
22
const [items, setItems] = useState<Array<DashboardGridItem>>([]);
23
- const sandboxesForPath =
24
- sandboxes.REPOS && param
25
- ? getFilteredSandboxes(sandboxes.REPOS[param].sandboxes || [])
26
- : [];
+ const sandboxesExist = sandboxes.REPOS && param && sandboxes.REPOS[param];
+ const sandboxesForPath = sandboxesExist
+ ? getFilteredSandboxes(sandboxes.REPOS[param].sandboxes || [])
+ : [];
27
28
const repos = (sandboxes.REPOS && Object.values(sandboxes.REPOS)) || [];
29
0 commit comments