slug first logic
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
// [SECTION: UI STATE]
|
||||
let showGitManager = $state(false);
|
||||
let gitDashboardId: number | null = $state(null);
|
||||
let gitDashboardId: string | null = $state(null);
|
||||
let gitDashboardTitle = $state("");
|
||||
let repositoryStatusByDashboardId = $state<Record<number, string>>({});
|
||||
let repositoryStatusRequestId = $state(0);
|
||||
@@ -373,7 +373,7 @@
|
||||
(dashboard) => dashboard.id === selectedDashboardId,
|
||||
);
|
||||
|
||||
gitDashboardId = selectedDashboardId;
|
||||
gitDashboardId = String(selectedDashboard?.slug || selectedDashboardId);
|
||||
gitDashboardTitle = selectedDashboard?.title || "";
|
||||
showGitManager = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user