fix: resolve non-null assertion linting in Reader and add null check for fabricRef in ComposeCanvas

This commit is contained in:
ramvignesh-b
2026-04-15 17:57:18 +05:30
parent 198f9c32dd
commit 8f6fd6a529
2 changed files with 9 additions and 4 deletions
@@ -401,6 +401,8 @@ export const ComposeCanvas = forwardRef<
fabricRef.current?.add(img);
fabricRef.current?.setActiveObject(img);
if (!fabricRef.current) return;
logicalSizeRef.current.height = measureLogicalContentHeight(
fabricRef.current,
logicalSizeRef.current.height,