This commit is contained in:
zsviczian 2023-04-03 12:15:11 +02:00 committed by GitHub
parent 7d1efb7f8b
commit 3b9953f57f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,7 +423,7 @@ const generateElementShape = (
// (= do not generate anything)
if (shape === undefined) {
const prevElementWithCanvas = elementWithCanvasCache.get(element);
if(prevElementWithCanvas?.canvas) {
if (prevElementWithCanvas?.canvas) {
prevElementWithCanvas.canvas.width = 0;
prevElementWithCanvas.canvas.height = 0;
}
@ -690,7 +690,7 @@ const generateElementWithCanvas = (
zoom,
renderConfig,
);
if(prevElementWithCanvas?.canvas) {
if (prevElementWithCanvas?.canvas) {
prevElementWithCanvas.canvas.width = 0;
prevElementWithCanvas.canvas.height = 0;
}