mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 13:09:46 +00:00
chore: cleanup (#17115)
This commit is contained in:
parent
d8fbe0af01
commit
d4107d51f1
35 changed files with 75 additions and 1202 deletions
|
|
@ -54,14 +54,6 @@ export const childMapByParent = (sessions: Session[]) => {
|
|||
return map
|
||||
}
|
||||
|
||||
export function getDraggableId(event: unknown): string | undefined {
|
||||
if (typeof event !== "object" || event === null) return undefined
|
||||
if (!("draggable" in event)) return undefined
|
||||
const draggable = (event as { draggable?: { id?: unknown } }).draggable
|
||||
if (!draggable) return undefined
|
||||
return typeof draggable.id === "string" ? draggable.id : undefined
|
||||
}
|
||||
|
||||
export const displayName = (project: { name?: string; worktree: string }) =>
|
||||
project.name || getFilename(project.worktree)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue