keep tracking down window issues
This commit is contained in:
parent
f3aba3c4df
commit
f038f5e9ef
@ -17,7 +17,7 @@ const SORT_KEYS = {
|
||||
};
|
||||
|
||||
const GalleryPage = ({ data }) => {
|
||||
const hash = window.location.hash.replace("#", "");
|
||||
const hash = typeof window !== "undefined" ? window.location.hash.replace("#", "") : "";
|
||||
|
||||
const [filterKeyword, _setKeyword] = React.useState(null);
|
||||
const [sortKey, _setSortKey] = React.useState("rating");
|
||||
|
Loading…
x
Reference in New Issue
Block a user