แก้บรรจุแต่งตั้ง รายชื่อที่สอบผ่าน
This commit is contained in:
parent
627696ea65
commit
e6dcc39765
5 changed files with 87 additions and 102 deletions
|
|
@ -63,7 +63,8 @@ async function addAvatarToData(item: any) {
|
|||
// เพิ่ม avatar ให้กับ item
|
||||
const updatedItem = {
|
||||
...item,
|
||||
avatar: item.avatar ? await fetchProfile(item.avatar) : avatar,
|
||||
// avatar: item.avatar ? await fetchProfile(item.avatar) : avatar,
|
||||
avatar: avatar,
|
||||
// ตรวจสอบว่า item มี children หรือไม่
|
||||
children: item.children
|
||||
? await Promise.all(item.children.map(addAvatarToData))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue