1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Fix missing deps in PageEvent

This commit is contained in:
Steffo 2022-07-19 20:30:37 +02:00
parent 4501456339
commit 5952bf54f8
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -51,7 +51,7 @@ const PageEvent: NextPage<PageEventProps> = ({ slug, fallbackData }) => {
const response = await axios.patch<Event>(`/api/events/${slug}`, data!) const response = await axios.patch<Event>(`/api/events/${slug}`, data!)
mutate(response.data, { revalidate: false }) mutate(response.data, { revalidate: false })
}, },
[axios, data] [axios, data, mutate, slug]
) )
const eventName = data?.name ?? slug const eventName = data?.name ?? slug