Skip to content

Commit 15c1daa

Browse files
committed
fix
1 parent 1f1757c commit 15c1daa

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

public/favicon.png

141 KB
Loading

src/components/StarterQueriesPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const StarterQueriesPanel = observer(({ type }) => {
117117
});
118118
}, []);
119119

120-
const extractId = url => url.split('/').pop();
120+
const extractId = url => url ? url?.split('/')?.pop() : null;
121121

122122
const handleItemClick = useCallback(
123123
async (url, title) => {

0 commit comments

Comments
 (0)