fix: cache with duplicated data
This commit is contained in:
@ -38,10 +38,7 @@ export const getServerSideProps = authenticationFromServerSide({
|
||||
const userId = Number(context?.params?.userId)
|
||||
if (isNaN(userId)) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: '/404',
|
||||
permanent: false
|
||||
}
|
||||
notFound: true
|
||||
}
|
||||
}
|
||||
const { data } = await api.get(`/users/${userId}`)
|
||||
|
Reference in New Issue
Block a user