瀏覽代碼

check for strict null

zsviczian 1 年之前
父節點
當前提交
17477480f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/excalidraw/element/linearElementEditor.ts

+ 1 - 1
packages/excalidraw/element/linearElementEditor.ts

@@ -741,7 +741,7 @@ export class LinearElementEditor {
     }
     if (event.altKey && appState.editingLinearElement) {
       if (
-        linearElementEditor.lastUncommittedPoint == null &&
+        linearElementEditor.lastUncommittedPoint === null &&
         !isElbowArrow(element)
       ) {
         mutateElement(element, {