diff --git a/src/providers/board.tsx b/src/providers/board.tsx index 226afd35..25d05ef5 100644 --- a/src/providers/board.tsx +++ b/src/providers/board.tsx @@ -54,14 +54,7 @@ export const BoardProvider: React.FC<{ children: ReactNode }> = ({ if (!boardData?.publicId) return; try { - const data = await utils.board.byId.fetch({ - boardPublicId: boardData.publicId, - filters: { - members: [], - labels: [], - }, - }); - if (data) setBoardData(data); + await utils.board.byId.refetch(); } catch (e) { showPopup({ header: "Error fetching board", diff --git a/src/views/board/components/DeleteListConfirmation.tsx b/src/views/board/components/DeleteListConfirmation.tsx index 7fcb4021..17d3237e 100644 --- a/src/views/board/components/DeleteListConfirmation.tsx +++ b/src/views/board/components/DeleteListConfirmation.tsx @@ -18,13 +18,7 @@ export function DeleteListConfirmation({ const refetchBoard = async () => { if (boardData?.publicId) { try { - await utils.board.byId.refetch({ - boardPublicId: boardData.publicId, - filters: { - members: [], - labels: [], - }, - }); + await utils.board.byId.refetch(); } catch (e) { console.error(e); } diff --git a/src/views/board/components/List.tsx b/src/views/board/components/List.tsx index c0352f99..eff9aaa5 100644 --- a/src/views/board/components/List.tsx +++ b/src/views/board/components/List.tsx @@ -64,7 +64,7 @@ export default function List({ ref={provided.innerRef} {...provided.draggableProps} {...provided.dragHandleProps} - className="dark-text-dark-1000 z-0 mr-5 h-fit min-w-[18rem] max-w-[18rem] rounded-md border border-light-400 bg-light-300 py-2 pl-2 pr-1 text-neutral-900 dark:border-dark-300 dark:bg-dark-100" + className="dark-text-dark-1000 mr-5 h-fit min-w-[18rem] max-w-[18rem] rounded-md border border-light-400 bg-light-300 py-2 pl-2 pr-1 text-neutral-900 dark:border-dark-300 dark:bg-dark-100" >
{list.cards?.map((card, index) => (