don't 404 for inactive job that user owns

This commit is contained in:
keyan 2022-04-21 13:06:52 -05:00
parent 74b191837e
commit d91eb02c74
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import { getGetServerSideProps } from '../../../api/ssrApollo'
import { useQuery } from '@apollo/client'
export const getServerSideProps = getGetServerSideProps(ITEM_FULL, null,
data => !data.item || data.item.status !== 'ACTIVE')
data => !data.item || (data.item.status !== 'ACTIVE' && !data.item.mine))
export default function AnItem ({ data: { item } }) {
const { data } = useQuery(ITEM_FULL, {