@orsetra/shared-ui 1.1.36 → 1.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
import { Loader2, FolderKanban } from "lucide-react"
|
|
22
22
|
|
|
23
23
|
export interface Project {
|
|
24
|
+
id: string,
|
|
24
25
|
name: string
|
|
25
26
|
alias?: string
|
|
26
27
|
description?: string
|
|
@@ -79,7 +80,7 @@ export function ProjectSelectorModal({
|
|
|
79
80
|
|
|
80
81
|
// If no project selected yet and we have projects, select the first one
|
|
81
82
|
if (!selectedProject && projectsList.length > 0) {
|
|
82
|
-
setSelectedProject(projectsList[0].
|
|
83
|
+
setSelectedProject(projectsList[0].id)
|
|
83
84
|
}
|
|
84
85
|
} catch (err) {
|
|
85
86
|
console.error("Failed to load projects:", err)
|
|
@@ -205,9 +206,9 @@ export function ProjectSelectorModal({
|
|
|
205
206
|
</SelectTrigger>
|
|
206
207
|
<SelectContent className="rounded-none">
|
|
207
208
|
{projects.map((project) => (
|
|
208
|
-
<SelectItem key={project.
|
|
209
|
+
<SelectItem key={project.id} value={project.id} className="rounded-none">
|
|
209
210
|
<div className="flex flex-col">
|
|
210
|
-
<span className="font-medium">{project.alias || project.
|
|
211
|
+
<span className="font-medium">{project.alias || project.id}</span>
|
|
211
212
|
{project.description && (
|
|
212
213
|
<span className="text-xs text-ibm-gray-60">{project.description}</span>
|
|
213
214
|
)}
|