summaryrefslogtreecommitdiff
path: root/src/lib/address/components/CreateAddress.jsx
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-01-14 09:53:43 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-01-14 09:53:43 +0000
commit3e037c57566d7fb0acad2cb71fedd075cb9ce462 (patch)
tree1ec2ebdf700d3c9501a665a8f1e5351ddc80e5ef /src/lib/address/components/CreateAddress.jsx
parenta868498e7327593b40d1e02fd96531fefd9548d5 (diff)
parent76afb8aaa5d2aaaf68529e11e9ed4d003d953f76 (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.jsx10
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'>