Fix optional error when checking job
This commit is contained in:
parent
59bc9e6b89
commit
2348c049d6
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const JobDropdown = React.forwardRef<HTMLSelectElement, Props>(
|
|||
|
||||
// Set current job from state on mount
|
||||
useEffect(() => {
|
||||
if (party.job.id !== '-1') {
|
||||
if (party.job?.id !== '-1') {
|
||||
setCurrentJob(party.job)
|
||||
}
|
||||
}, [])
|
||||
|
|
|
|||
Loading…
Reference in a new issue