Skip to content
Permalink
Browse files

feat: v19.10.0 dataValidate function required

  • Loading branch information...
dariocravero committed Sep 10, 2019
1 parent 768dae2 commit 50adfb6686330587e2effd0b9f502f03aa0be31e
Showing with 3 additions and 5 deletions.
  1. +1 −3 ensure-data.js
  2. +1 −1 morph/react/get-body.js
  3. +1 −1 package.json
@@ -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];
@@ -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,')
}
}
@@ -1,6 +1,6 @@
{
"name": "@viewstools/morph",
"version": "19.9.0",
"version": "19.10.0",
"description": "Views language morpher",
"main": "index.js",
"type": "module",

0 comments on commit 50adfb6

Please sign in to comment.
You can’t perform that action at this time.