Update API call for fetching sucos and modify payload structure

- Change `with_deleted` from true to false when fetching sucos
- Update payload sent to API to include only name, description, and status
This commit is contained in:
Wikzyy
2025-04-07 14:29:09 +07:00
parent 4a6033d7b4
commit 96cd2378ab
2 changed files with 18 additions and 21 deletions

View File

@ -153,7 +153,7 @@ const ManageSucosContextProvider = ({ children }: { children: React.ReactNode })
const response = await GetData(`${API_URL}/sucos/list`, {
limit: limit,
page: page + 1,
with_deleted: true,
with_deleted: false,
order_field: sorting[0].id,
order_direction: sorting[0].desc == false ? 'ASC' : 'DESC',
filter: JSON.stringify(filter)