Skip to content

Commit 36221ad

Browse files
committed
fix
1 parent e4e0836 commit 36221ad

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/kanban/KanbanBoard.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default function KanbanBoard({ projectId }: KanbanBoardProps) {
178178
const { active } = event;
179179
const activeColumn = findTaskColumn(active.id as string);
180180
const task = activeColumn?.tasks.find(t => t.id === active.id);
181-
const activeColName = activeColumn ? (fetchedCategories.find(c => c.id === activeColumn.id)?.categoryName || activeColumn.title) : undefined;
181+
182182
if (task) {
183183
setActiveTask(task);
184184
setActiveFromColumn(activeColumn?.id || null);
@@ -196,8 +196,7 @@ export default function KanbanBoard({ projectId }: KanbanBoardProps) {
196196

197197
const activeColumn = findTaskColumn(activeId);
198198
const overColumn = findColumn(overId) || findTaskColumn(overId);
199-
const activeColName = activeColumn ? (fetchedCategories.find(c => c.id === activeColumn.id)?.categoryName || activeColumn.title) : undefined;
200-
const overColName = overColumn ? (fetchedCategories.find(c => c.id === overColumn.id)?.categoryName || overColumn.title) : undefined;
199+
201200

202201
// Only visual feedback, no state updates during drag over
203202
// State updates will happen in handleDragEnd
@@ -218,8 +217,7 @@ export default function KanbanBoard({ projectId }: KanbanBoardProps) {
218217

219218
const activeColumn = findTaskColumn(activeId);
220219
const overColumn = findColumn(overId) || findTaskColumn(overId);
221-
const activeColName = activeColumn ? (fetchedCategories.find(c => c.id === activeColumn.id)?.categoryName || activeColumn.title) : undefined;
222-
const overColName = overColumn ? (fetchedCategories.find(c => c.id === overColumn.id)?.categoryName || overColumn.title) : undefined;
220+
223221

224222
if (!activeColumn || !overColumn) return;
225223
const activeIndex = activeColumn.tasks.findIndex(t => t.id === activeId);
@@ -312,7 +310,7 @@ export default function KanbanBoard({ projectId }: KanbanBoardProps) {
312310
setMainTaskSubmitError(null);
313311

314312
try {
315-
const newMainTask = await mainTasksApi.createMainTask({
313+
await mainTasksApi.createMainTask({
316314
title: mainTaskForm.title,
317315
description: mainTaskForm.description,
318316
projectId: projectId

src/pages/project/TaskListPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default function TaskListPage() {
192192

193193
loadProject();
194194
return () => { active = false; };
195-
// eslint-disable-next-line react-hooks/exhaustive-deps
195+
196196
}, [titleSlug]);
197197

198198
// Fetch assignable users when project is loaded
@@ -377,6 +377,7 @@ export default function TaskListPage() {
377377
console.error('Failed to fetch project members:', projectErr);
378378
}
379379
} else {
380+
// No project-specific members to fetch
380381
}
381382

382383
setAssignableUsers(unique);

0 commit comments

Comments
 (0)