Skip to content

Commit

Permalink
fix: remove unused param from drawImagePlaceholder (excalidraw#7991)
Browse files Browse the repository at this point in the history
  • Loading branch information
ad1992 authored May 7, 2024
1 parent 6539029 commit c1926f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/excalidraw/renderer/renderElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ IMAGE_ERROR_PLACEHOLDER_IMG.src = `data:${MIME_TYPES.svg},${encodeURIComponent(
const drawImagePlaceholder = (
element: ExcalidrawImageElement,
context: CanvasRenderingContext2D,
zoomValue: AppState["zoom"]["value"],
) => {
context.fillStyle = "#E7E7E7";
context.fillRect(0, 0, element.width, element.height);
Expand Down Expand Up @@ -357,7 +356,7 @@ const drawElementOnCanvas = (
element.height,
);
} else {
drawImagePlaceholder(element, context, appState.zoom.value);
drawImagePlaceholder(element, context);
}
break;
}
Expand Down

0 comments on commit c1926f3

Please sign in to comment.