Browse Source

check for strict null

zsviczian 1 năm trước cách đây
mục cha
commit
17477480f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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, {