Merge branch 'release/v2.0.4' of https://github.com/Worklenz/worklenz into fix/WB-705-task-list-timer-cell
This commit is contained in:
@@ -166,7 +166,7 @@ const EnhancedKanbanCreateSubtaskCard = ({
|
||||
onKeyUp={e => e.stopPropagation()}
|
||||
onKeyPress={e => e.stopPropagation()}
|
||||
onBlur={handleInputBlur}
|
||||
placeholder={t('kanbanBoard.addSubTaskPlaceholder')}
|
||||
placeholder={t('newSubtaskNamePlaceholder')}
|
||||
className={`enhanced-kanban-create-subtask-input ${themeMode === 'dark' ? 'dark' : ''}`}
|
||||
disabled={creatingTask}
|
||||
autoFocus
|
||||
|
||||
@@ -89,12 +89,7 @@ const EnhancedKanbanCreateTaskCard: React.FC<EnhancedKanbanCreateTaskCardProps>
|
||||
|
||||
// Real-time socket event handler
|
||||
const eventHandler = (task: IProjectTask) => {
|
||||
dispatch(
|
||||
addTaskToGroup({
|
||||
sectionId,
|
||||
task: { ...task, id: task.id || nanoid(), name: task.name || newTaskName.trim() },
|
||||
})
|
||||
);
|
||||
// Only reset the form - the global handler will add the task to Redux
|
||||
socket?.off(SocketEvents.QUICK_TASK.toString(), eventHandler);
|
||||
resetForNextTask();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user