Skip to content

Commit

Permalink
feat: v19.10.0 dataValidate function required
Browse files Browse the repository at this point in the history
  • Loading branch information
Darío Javier Cravero committed Sep 10, 2019
1 parent 768dae2 commit 50adfb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ensure-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ export let useCaptureItemProvider = (item, onSubmit) => {
async function _onSubmit() {
try {
if(!await onSubmit()) return;
} catch(error) {
console.log('onSubmit', error);
}
} catch(error) {}
dispatch({ type: CAPTURE_FORCE_REQUIRED });
}
return [state, dispatch, _onSubmit];
Expand Down
2 changes: 1 addition & 1 deletion morph/react/get-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ function maybeDataValidate(validate, data) {
if (!validate || validate.type !== 'js') return
data.push(`validate: '${validate.value}',`)
if (validate.required) {
data.push('required: true')
data.push('required: true,')
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viewstools/morph",
"version": "19.9.0",
"version": "19.10.0",
"description": "Views language morpher",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 50adfb6

Please sign in to comment.