chore(react/collections/board): note not properly marked as dragged

This commit is contained in:
Elian Doran
2025-09-13 09:59:01 +03:00
parent ae5576f2a3
commit 7edfaad04e
2 changed files with 11 additions and 3 deletions

View File

@@ -34,10 +34,12 @@ interface BoardViewContextData {
dropPosition: { column: string, index: number } | null;
setDropPosition: (position: { column: string, index: number } | null) => void;
setDropTarget: (target: string | null) => void,
dropTarget: string | null
dropTarget: string | null;
draggedCard: { noteId: string, branchId: string, fromColumn: string, index: number } | null;
setDraggedCard: Dispatch<StateUpdater<{ noteId: string; branchId: string; fromColumn: string; index: number; } | null>>;
}
export const BoardViewContext = createContext<BoardViewContextData>({});
export const BoardViewContext = createContext<BoardViewContextData | undefined>(undefined);
export default function BoardView({ note: parentNote, noteIds, viewConfig, saveConfig }: ViewModeProps<BoardViewData>) {
const [ statusAttribute ] = useNoteLabelWithDefault(parentNote, "board:groupBy", "status");