From 784605618bb8d6e204b9fc8660dcf9720647e3c1 Mon Sep 17 00:00:00 2001 From: joesong168 <joesong168@qq.com> Date: Sat, 20 Nov 2021 11:38:14 +0800 Subject: [PATCH] Fix null error when style props do not have left property --- src/components/ThumbnailCanvasGrouping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ThumbnailCanvasGrouping.js b/src/components/ThumbnailCanvasGrouping.js index cc966ff81..72f08bb4a 100644 --- a/src/components/ThumbnailCanvasGrouping.js +++ b/src/components/ThumbnailCanvasGrouping.js @@ -44,7 +44,7 @@ export class ThumbnailCanvasGrouping extends PureComponent { ...style, boxSizing: 'content-box', height: (Number.isInteger(style.height)) ? style.height - SPACING : null, - left: style.left + SPACING, + left: (Number.isInteger(style.left)) ? style.left + SPACING : null, top: style.top + SPACING, width: (Number.isInteger(style.width)) ? style.width - SPACING : null, }} -- GitLab