fix job image upload

This commit is contained in:
keyan 2023-09-14 10:35:13 -05:00
parent 7d170a654f
commit cee00af83c
2 changed files with 2 additions and 2 deletions

View File

@ -672,7 +672,7 @@ export default {
item.location = item.location?.toLowerCase() === 'remote' ? undefined : item.location
await ssValidate(jobSchema, item, models)
if (item.logo) {
if (item.logo !== undefined) {
item.uploadId = item.logo
delete item.logo
}

View File

@ -79,7 +79,7 @@ export default function JobForm ({ item, sub }) {
} else {
await router.push(`/~${sub.name}/recent`)
}
}, [upsertJob, router]
}, [upsertJob, router, logoId]
)
return (