asasvirtuais 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/react-interface.tsx +2 -2
- package/tsconfig.json +1 -0
package/package.json
CHANGED
|
@@ -309,7 +309,7 @@ export function reactInterface<
|
|
|
309
309
|
|
|
310
310
|
const callback = useCallback(
|
|
311
311
|
async (fields: Omit<ListProps<Readable>, 'table'>) => {
|
|
312
|
-
const result = await list.trigger(
|
|
312
|
+
const result = await list.trigger(fields)
|
|
313
313
|
if (onSuccess) onSuccess(result)
|
|
314
314
|
return result
|
|
315
315
|
},
|
|
@@ -318,7 +318,7 @@ export function reactInterface<
|
|
|
318
318
|
|
|
319
319
|
return (
|
|
320
320
|
<FieldsProvider<ListProps<Readable>>
|
|
321
|
-
defaults={(defaults || {}) as ListProps<Readable>}
|
|
321
|
+
defaults={(defaults || { query: {} }) as ListProps<Readable>}
|
|
322
322
|
>
|
|
323
323
|
{fields => (
|
|
324
324
|
<FormProvider<ListProps<Readable>, Readable[]> callback={callback} data={fields.fields}>
|