Don't send a request if the shortcode is still undefined
This commit is contained in:
parent
de96600122
commit
b01b4c55a2
1 changed files with 3 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue