This commit is contained in:
Chuck Dries 2022-07-10 18:27:16 -07:00
parent 2103706c99
commit f30ebb5e11
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6

View File

@ -20,7 +20,7 @@ const GalleryPage = ({ data }) => {
const hash =
typeof window !== "undefined" ? window.location.hash.replace("#", "") : "";
const [hashCleared, setHashCleared] = React.useState(false);
const [hashCleared, setHashCleared] = React.useState(false); // eslint-disable-line no-unused-vars
// ^ used just to force a re-render with the cleared hash value (I know, it's a smell for sure)
const [filterKeyword, _setKeyword] = React.useState(null);
const [sortKey, _setSortKey] = React.useState("rating");