PluginProbe
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce / 3.3.0
CartFlows – Funnel Builder & Checkout Plugin for WooCommerce v3.3.0
3.3.0 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.1 trunk 1.0.4 1.1.0 1.1.0.1 1.1.1 1.1.10 1.1.11 1.1.12 1.1.13 1.1.14 1.1.15 1.1.16 1.1.17 1.1.18 1.1.19 1.1.2 All 162 releases
cartflows / modules / gutenberg / src / controls / isInvalid.js

isInvalid.js in CartFlows – Funnel Builder & Checkout Plugin for WooCommerce 3.3.0, at modules/gutenberg/src/controls/isInvalid.js

19 lines 269 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const isInvalid = ( block ) => {
2 const {
3 name,
4 isValid,
5 validationIssues,
6 } = block;
7
8 if ( ! name || ! name.match( /^uagb\// ) ) {
9 return false;
10 }
11
12 if ( isValid || ! validationIssues.length ) {
13 return false;
14 }
15
16 return true;
17 }
18
19 export default isInvalid;