Skip to content

Commit 9f27904

Browse files
committed
fix vite warning: The "??" operator here will always return the left operand
1 parent d0e203a commit 9f27904

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pods/canvas/use-keyboard-displacement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const useKeyboardDisplacement = () => {
4141
// then we return and let the input and textare control it
4242
const isInlineEditing =
4343
(event.target as any)?.attributes['data-is-inline-edition-on'] !==
44-
undefined ?? false;
44+
undefined;
4545
if (isInlineEditing || !isKeyboardKey(event.key)) {
4646
return;
4747
}

0 commit comments

Comments
 (0)