refactor: ensure remark and agency status fields default to empty strings in user data
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 9s
This commit is contained in:
parent
1a8be5ac34
commit
7fcb4d7744
2 changed files with 3 additions and 3 deletions
|
|
@ -609,8 +609,8 @@ async function assignFormData(idEdit: string) {
|
|||
(foundUser.citizenIssue && new Date(foundUser.citizenIssue)) || null,
|
||||
citizenExpire:
|
||||
(foundUser.citizenExpire && new Date(foundUser.citizenExpire)) || null,
|
||||
remark: foundUser.remark,
|
||||
agencyStatus: foundUser.agencyStatus,
|
||||
remark: foundUser.remark || '',
|
||||
agencyStatus: foundUser.agencyStatus || '',
|
||||
};
|
||||
|
||||
formData.value.status === 'ACTIVE' || 'CREATED'
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ export type UserCreate = {
|
|||
citizenId: string;
|
||||
|
||||
remark?: string;
|
||||
agencyStatus?: AgencyStatus;
|
||||
agencyStatus?: AgencyStatus | string;
|
||||
};
|
||||
|
||||
export enum AgencyStatus {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue