chore: cleanup (#17115)

This commit is contained in:
Adam 2026-03-12 07:26:43 -05:00 committed by GitHub
parent d8fbe0af01
commit d4107d51f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 75 additions and 1202 deletions

View file

@ -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)