fix job image upload
This commit is contained in:
parent
7d170a654f
commit
cee00af83c
|
@ -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
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ export default function JobForm ({ item, sub }) {
|
|||
} else {
|
||||
await router.push(`/~${sub.name}/recent`)
|
||||
}
|
||||
}, [upsertJob, router]
|
||||
}, [upsertJob, router, logoId]
|
||||
)
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue