style: auto-fix lint and format
This commit is contained in:
1 parent
c4a664b7ac
commit
9c6f900b82
2 files changed
+2
-7
No files matched your search
@@ -126,9 +126,7 @@ async function QueryCacheHydration({ userId, boardId }: { userId: string; boardI
|
||||
|
||||
return <HydrationBoundary state={persisted.clientState} />;
|
||||
} catch (error) {
|
||||
logger.warn(
|
||||
new ErrorWithMetadata("Failed to hydrate query cache", { userId, boardId }, { cause: error }),
|
||||
);
|
||||
logger.warn(new ErrorWithMetadata("Failed to hydrate query cache", { userId, boardId }, { cause: error }));
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -20,10 +20,7 @@ export const BoardProvider = ({
|
||||
}: PropsWithChildren<{
|
||||
initialBoard: RouterOutputs["board"]["getBoardByName"];
|
||||
}>) => {
|
||||
const { data } = clientApi.board.getBoardByName.useQuery(
|
||||
{ name: initialBoard.name },
|
||||
{ initialData: initialBoard },
|
||||
);
|
||||
const { data } = clientApi.board.getBoardByName.useQuery({ name: initialBoard.name }, { initialData: initialBoard });
|
||||
|
||||
// Update the board name so it can be used within updateBoard method
|
||||
updateBoardName(initialBoard.name);
|
||||
|
||||
Reference in new issue
Block a user