แก้สมัครสอบ
This commit is contained in:
parent
88d84927d6
commit
7ba783f9a5
3 changed files with 6 additions and 6 deletions
|
|
@ -346,7 +346,7 @@ const fetchDistrict = async (id: string, position: string) => {
|
|||
await http
|
||||
.get(config.API.listDistrict(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result
|
||||
const data = res.data.result.districts
|
||||
let option: DataOption[] = []
|
||||
data.map((r: DataOption) => {
|
||||
option.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
|
|
@ -370,7 +370,7 @@ const fetchSubDistrict = async (id: string, position: string) => {
|
|||
await http
|
||||
.get(config.API.listSubDistrict(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result
|
||||
const data = res.data.result.subDistricts
|
||||
let option: DataOption[] = []
|
||||
data.map((r: DataOption) => {
|
||||
option.push({
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ const fetchDistrict = async (id: string) => {
|
|||
await http
|
||||
.get(config.API.listDistrict(id))
|
||||
.then((res) => {
|
||||
const data = res.data.result
|
||||
const data = res.data.result.districts
|
||||
let option: DataOption[] = []
|
||||
data.map((r: DataOption) => {
|
||||
option.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue