refactor: simplify user API calls by removing pageSize parameter in multiple components
This commit is contained in:
@@ -51,8 +51,8 @@ export function StockAdjustDialog({ open, onClose, onSuccess, balance }: StockAd
|
||||
useEffect(() => {
|
||||
if (!open) return
|
||||
form.reset({ quantity: 0, reasonCode: '', adjustedByUserId: '' })
|
||||
usersApi.list({ pageSize: 200 })
|
||||
.then((res) => setUsersList(getPaginatedItems(res)))
|
||||
usersApi.list()
|
||||
.then((res) => setUsersList(res))
|
||||
.catch((err) => toast.add({ title: 'Failed to load users', description: getApiError(err), type: 'error' }))
|
||||
}, [open])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user