check for strict null

This commit is contained in:
zsviczian 2024-08-09 23:21:43 +02:00 committed by GitHub
parent f7b3befd0a
commit 17477480f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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