fix: create branch head office condition when not send
This commit is contained in:
parent
c318a7abf2
commit
075d40876e
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ export class BranchController extends Controller {
|
|||
},
|
||||
data: {
|
||||
...rest,
|
||||
isHeadOffice: headOfficeId === null,
|
||||
isHeadOffice: !headOfficeId,
|
||||
province: { connect: provinceId ? { id: provinceId } : undefined },
|
||||
district: { connect: districtId ? { id: districtId } : undefined },
|
||||
subDistrict: { connect: subDistrictId ? { id: subDistrictId } : undefined },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue