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.

454 B
Raw Blame
import type { ProjectWithTasks } from "@/types/project";
import { moveBoardTask } from "../move-task";
import { getHoveredOtherColumnId } from "./get-hovered-other-column-id";

export function moveIntoHoveredColumn(
  board: ProjectWithTasks,
  activeId: string,
  overId: string,
) {
  if (!getHoveredOtherColumnId(board, activeId, overId)) return null;
  return (
    moveBoardTask(board, activeId, overId, false, false, false)?.project ?? null
  );
}