Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(web): prefer column.name over slug-derived label in move popover

Ivan Bobchenkovdaf3b7369fd2
diff --git a/apps/web/src/components/task/task-move-popover.tsx b/apps/web/src/components/task/task-move-popover.tsx
index 08c3eea16..f8dd2036e 100644
--- a/apps/web/src/components/task/task-move-popover.tsx
+++ b/apps/web/src/components/task/task-move-popover.tsx
@@ -71,7 +71,7 @@ export default function TaskMovePopover({
const selectedStatusLabel = useMemo(() => {
if (!effectiveStatus || destinationColumns.length === 0) return null;
const column = destinationColumns.find((c) => c.id === effectiveStatus);
- return getStatusLabel(effectiveStatus) || column?.name || null;
+ return column?.name || getStatusLabel(effectiveStatus) || null;
}, [destinationColumns, effectiveStatus]);
useEffect(() => {
@@ -203,7 +203,7 @@ export default function TaskMovePopover({
<SelectContent>
{destinationColumns.map((column) => (
<SelectItem key={column.id} value={column.id}>
- {getStatusLabel(column.id) || column.name}
+ {column.name || getStatusLabel(column.id)}
</SelectItem>
))}
</SelectContent>