fix year
This commit is contained in:
parent
dd33feef99
commit
8278d9ddff
1 changed files with 1 additions and 2 deletions
|
|
@ -1075,8 +1075,7 @@ export class ProfileController extends Controller {
|
||||||
discipline_raw.length > 0
|
discipline_raw.length > 0
|
||||||
? discipline_raw.slice(-2).map((item) => ({
|
? discipline_raw.slice(-2).map((item) => ({
|
||||||
disciplineYear:
|
disciplineYear:
|
||||||
Extension.ToThaiNumber(new Date(item.refCommandDate).getFullYear().toString()) ??
|
item.refCommandDate?Extension.ToThaiNumber(new Date(item.refCommandDate).getFullYear().toString()):null,
|
||||||
null,
|
|
||||||
disciplineDetail: item.detail ?? null,
|
disciplineDetail: item.detail ?? null,
|
||||||
refNo: Extension.ToThaiNumber(item.refCommandNo) ?? null,
|
refNo: Extension.ToThaiNumber(item.refCommandNo) ?? null,
|
||||||
}))
|
}))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue