Don't send a request if the shortcode is still undefined

This commit is contained in:
Justin Edmund 2022-02-01 05:10:16 -08:00
parent de96600122
commit b01b4c55a2

View file

@ -112,7 +112,9 @@ const PartyRoute: React.FC = () => {
} }
const shortcode: string = slug as string const shortcode: string = slug as string
fetchGrid(shortcode) if (shortcode)
fetchGrid(shortcode)
}, [slug, cookies.user, setEditableContext]) }, [slug, cookies.user, setEditableContext])
function render() { function render() {