Skip to content

Commit 69e22b1

Browse files
committed
fix: window type inference
1 parent 003e935 commit 69e22b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/command-palette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function CommandPalette({ open, setOpen }) {
4646

4747
const onItemSelected = (url: Location | (Location & string)) => {
4848
if (url) {
49-
window.location = url;
49+
(window as Window).location = url;
5050
}
5151
}
5252

0 commit comments

Comments
 (0)