fix: load projects for dropdown when in projects route

This commit is contained in:
Hemachandar committed 2025-09-09 20:57:11 +05:30
1 parent e30db8ec00
commit 44c69ed916
1 file changed
+2 -2
+2 -2
View File
@@ -105,6 +105,8 @@
async function createProjectsBottomSheet(
organization: Organization
): Promise<SheetMenu | null> {
const isOnProjects = page.route.id.includes('project-[region]-[project]');
if (!isOnProjects) return null;
isLoadingProjects = true;
@@ -216,8 +218,6 @@
$: organizationId = currentProject?.teamId;
$: isOnProjects = page.route.id.includes('project-[region]-[project]');
$: shouldReloadProjects = isLoadingProjects
? false
: currentProject && loadedProjects.projects.length