Fix a bug introduced by #880 (#881)

This commit is contained in:
Pete Hunt 2020-03-08 23:35:30 -07:00 committed by GitHub
parent 86f9f32a59
commit 05ebf3434b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,7 @@ function generateElement(
) { ) {
let shape = shapeCache.get(element) || null; let shape = shapeCache.get(element) || null;
if (!shape) { if (!shape) {
elementWithCanvasCache.delete(element);
switch (element.type) { switch (element.type) {
case "rectangle": case "rectangle":
shape = generator.rectangle(0, 0, element.width, element.height, { shape = generator.rectangle(0, 0, element.width, element.height, {