fix sorting and add delete dialog

This commit is contained in:
Wikzyy
2025-03-06 14:20:49 +07:00
parent 0df7800155
commit c0990e4b4d
3 changed files with 3 additions and 67 deletions

View File

@ -142,7 +142,7 @@ const ManageSucosContextProvider = ({ children }: { children: React.ReactNode })
const getSucosLists = async (page: number, limit: number, sorting: any, filter: any) => {
try {
sorting: sorting.length == 0 ? [{ id: 'name', desc: false }] : sorting;
sorting = sorting.length == 0 ? [{ id: 'name', desc: false }] : sorting;
filter = filter.length == 0 ? {} : { any: filter[0].value?.toLowerCase() };
const response = await GetData(`${API_URL}/sucos/list`, {
limit,