From 9f279049ea33c0dd880af1e35d13e6417df96337 Mon Sep 17 00:00:00 2001 From: Fran Lopez Date: Sat, 7 Sep 2024 14:19:34 +0200 Subject: [PATCH] fix vite warning: The "??" operator here will always return the left operand --- src/pods/canvas/use-keyboard-displacement.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pods/canvas/use-keyboard-displacement.tsx b/src/pods/canvas/use-keyboard-displacement.tsx index c1be222f..70bdcbd9 100644 --- a/src/pods/canvas/use-keyboard-displacement.tsx +++ b/src/pods/canvas/use-keyboard-displacement.tsx @@ -41,7 +41,7 @@ export const useKeyboardDisplacement = () => { // then we return and let the input and textare control it const isInlineEditing = (event.target as any)?.attributes['data-is-inline-edition-on'] !== - undefined ?? false; + undefined; if (isInlineEditing || !isKeyboardKey(event.key)) { return; }