Skip to content

Commit

Permalink
Strange behavior on vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszmigas committed Mar 5, 2024
1 parent fd44951 commit 0a600e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apps/web/src/components/canvasViewport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const layerId = "1";
export const CanvasViewport = () => {
const hostElementRef = useRef<HTMLDivElement>(null);
const viewportRef = useRef<Viewport>(defaultViewport);

const renderer = useCanvasRenderer(hostElementRef, size);

useDrawTool(
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/hooks/useFitToViewportOnInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useFitToViewport = (
50
);
callback(viewport);
}, 0);
}, 100);
}, []);
};

0 comments on commit 0a600e9

Please sign in to comment.