Skip to content

Commit 0c25761

Browse files
committed
fix
1 parent 2f857f8 commit 0c25761

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/livecodes/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2834,7 +2834,8 @@ const handleCommandMenu = async () => {
28342834
anotherShortcut = false;
28352835
setTimeout(async () => {
28362836
if (anotherShortcut) return;
2837-
if (ninja.__visible === false || ninja.data.length === 0) {
2837+
// eslint-disable-next-line no-underscore-dangle
2838+
if (ninja?.__visible === false || ninja?.data?.length === 0) {
28382839
ninja.focus();
28392840
requestAnimationFrame(() => openCommandMenu());
28402841
}

0 commit comments

Comments
 (0)