diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-01-14 09:53:43 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-01-14 09:53:43 +0000 |
| commit | 3e037c57566d7fb0acad2cb71fedd075cb9ce462 (patch) | |
| tree | 1ec2ebdf700d3c9501a665a8f1e5351ddc80e5ef /src/lib/address/components/CreateAddress.jsx | |
| parent | a868498e7327593b40d1e02fd96531fefd9548d5 (diff) | |
| parent | 76afb8aaa5d2aaaf68529e11e9ed4d003d953f76 (diff) | |
Merged in Feature/pengajuan-tempo (pull request #401)
Feature/pengajuan tempo
Approved-by: trisusilo
Diffstat (limited to 'src/lib/address/components/CreateAddress.jsx')
| -rw-r--r-- | src/lib/address/components/CreateAddress.jsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/address/components/CreateAddress.jsx b/src/lib/address/components/CreateAddress.jsx index 9d70e8fc..97db7ed8 100644 --- a/src/lib/address/components/CreateAddress.jsx +++ b/src/lib/address/components/CreateAddress.jsx @@ -37,7 +37,7 @@ const CreateAddress = () => { useEffect(() => { const loadState = async () => { - let dataState = await stateApi(); + let dataState = await stateApi({ tempo: false }); dataState = dataState.map((state) => ({ value: state.id, label: state.name, @@ -52,7 +52,7 @@ const CreateAddress = () => { setValue('city', ''); if (watchState) { const loadCities = async () => { - let dataCities = await cityApi({stateId: watchState}); + let dataCities = await cityApi({ stateId: watchState }); dataCities = dataCities.map((city) => ({ value: city.id, label: city.name, @@ -243,7 +243,11 @@ const CreateAddress = () => { name='city' control={control} render={(props) => ( - <HookFormSelect {...props} options={cities} disabled={!watchState}/> + <HookFormSelect + {...props} + options={cities} + disabled={!watchState} + /> )} /> <div className='text-caption-2 text-danger-500 mt-1'> |
