From 33970125ed82bdb7d06657a9a6696facfdfab118 Mon Sep 17 00:00:00 2001 From: Efren Aragon Date: Sun, 14 May 2023 20:13:18 -0400 Subject: [PATCH] fix: ts errors from rebase with next branch --- code/addons/measure/src/box-model/visualizer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/addons/measure/src/box-model/visualizer.ts b/code/addons/measure/src/box-model/visualizer.ts index eba2de27573b..22b4523aebb2 100644 --- a/code/addons/measure/src/box-model/visualizer.ts +++ b/code/addons/measure/src/box-model/visualizer.ts @@ -282,7 +282,7 @@ function drawContent( } function drawBoxModel(element: HTMLElement) { - return (context: CanvasRenderingContext2D) => { + return (context?: CanvasRenderingContext2D) => { if (element && context) { const measurements = measureElement(element);