fix: remove duplicate project selection callback in DashboardProjectPicker

This commit is contained in:
Nawaz Dhandala
2026-04-03 14:23:04 +01:00
parent a8497c497c
commit 788eeae500
2 changed files with 1 additions and 3 deletions

View File

@@ -284,9 +284,6 @@ const DashboardProjectPicker: FunctionComponent<ComponentProps> = (
if (project && props.onProjectSelected) {
props.onProjectSelected(project);
}
if (project && props.onProjectSelected) {
props.onProjectSelected(project);
}
setShowModal(false);
props.onProjectModalClose();
}}

View File

@@ -231,6 +231,7 @@ abstract class Navigation {
if (options?.forceNavigate && to instanceof Route) {
window.location.href = finalUrl;
return;
}
if (this.navigateHook && to instanceof Route && !this.isOnThisPage(to)) {