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:
parent
4501456339
commit
5952bf54f8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue