mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix: remove duplicate project selection callback in DashboardProjectPicker
This commit is contained in:
@@ -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();
|
||||
}}
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user