kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1165 from ONREZA/fix/task-move-popover-column-slug

fix(web): use column.id in task move popover (crash on project select)

authored by

Andrej and committed by
GitHub
9a620ba2 44a0c464

+6 -6
+6 -6
apps/web/src/components/task/task-move-popover.tsx
··· 61 61 62 62 const destinationColumns = destinationProject?.columns ?? []; 63 63 const canKeepCurrentStatus = destinationColumns.some( 64 - (column) => column.slug === task.status, 64 + (column) => column.id === task.status, 65 65 ); 66 - const fallbackStatus = destinationColumns[0]?.slug ?? ""; 66 + const fallbackStatus = destinationColumns[0]?.id ?? ""; 67 67 const effectiveStatus = canKeepCurrentStatus 68 68 ? task.status 69 69 : selectedStatus || fallbackStatus; 70 70 71 71 const selectedStatusLabel = useMemo(() => { 72 72 if (!effectiveStatus || destinationColumns.length === 0) return null; 73 - const column = destinationColumns.find((c) => c.slug === effectiveStatus); 74 - return getStatusLabel(effectiveStatus) || column?.name || null; 73 + const column = destinationColumns.find((c) => c.id === effectiveStatus); 74 + return column?.name || getStatusLabel(effectiveStatus) || null; 75 75 }, [destinationColumns, effectiveStatus]); 76 76 77 77 useEffect(() => { ··· 202 202 </SelectTrigger> 203 203 <SelectContent> 204 204 {destinationColumns.map((column) => ( 205 - <SelectItem key={column.id} value={column.slug}> 206 - {getStatusLabel(column.slug) || column.name} 205 + <SelectItem key={column.id} value={column.id}> 206 + {column.name || getStatusLabel(column.id)} 207 207 </SelectItem> 208 208 ))} 209 209 </SelectContent>