แก้สมัครสอบ

This commit is contained in:
kittapath 2025-01-05 21:56:56 +07:00
parent c1cae5a785
commit 1580691d52
6 changed files with 73 additions and 71 deletions

View file

@ -798,7 +798,7 @@ const fetchDistrict = async (id: string | null, 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: any) => {
option.push({ id: r.id.toString(), name: r.name.toString() });
@ -826,7 +826,7 @@ const fetchSubDistrict = async (id: string | null, position: string) => {
await http
.get(config.API.listSubDistrict(id))
.then((res) => {
const data = res.data.result;
const data = res.data.result.subDistricts;
let option: zipCodeOption[] = [];
data.map((r: any) => {
option.push({