mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
allow bypassing entity data validation for unknown keys in useEntityForm
This commit is contained in:
@@ -29,7 +29,11 @@ export function useEntityForm({
|
||||
onSubmitAsync: async ({ value }): Promise<any> => {
|
||||
try {
|
||||
//console.log("validating", value, entity.isValidData(value, action));
|
||||
entity.isValidData(value, action, true);
|
||||
entity.isValidData(value, action, {
|
||||
explain: true,
|
||||
// unknown will later be removed in getChangeSet
|
||||
ignoreUnknown: true
|
||||
});
|
||||
return undefined;
|
||||
} catch (e) {
|
||||
//console.log("---validation error", e);
|
||||
|
||||
Reference in New Issue
Block a user