Portofolio

Fix:
- Sub bidang bisnis

### No Issu
This commit is contained in:
2025-09-02 18:29:28 +08:00
parent 6887f85e6a
commit 9a915c55d2
9 changed files with 201 additions and 76 deletions

View File

@@ -9,12 +9,14 @@ export async function apiMasterBidangBisnis() {
}
}
export async function apiMasterSubBidangBisnis({id}: {id: string}) {
export async function apiMasterSubBidangBisnis({ id }: { id?: string }) {
try {
const response = await apiConfig.get(`/master/sub-bidang-bisnis/${id}`);
const selectBidangId = id ? `/${id}` : "";
const response = await apiConfig.get(
`/master/sub-bidang-bisnis${selectBidangId}`
);
return response.data;
} catch (error) {
throw error;
}
}