File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/functions/datastore-integration-webflow Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function customOptions() {
22
22
skip : {
23
23
inventory : ( config . datastore . skipValidation . inventory || '' ) . split ( ',' ) . map ( e => e . trim ( ) ) . filter ( e => ! ! e ) || [ ] ,
24
24
price : ( config . datastore . skipValidation . price || '' ) . split ( ',' ) . map ( e => e . trim ( ) ) . filter ( e => ! ! e ) || [ ] ,
25
+ updateinfo : config . datastore . skipValidation . updateinfo || 'Update Your Customer Information' ,
25
26
} ,
26
27
webflow : {
27
28
limit : 100 ,
@@ -191,7 +192,7 @@ function createCache() {
191
192
function extractItems ( body ) {
192
193
const objBody = JSON . parse ( body ) ;
193
194
if ( objBody && objBody . _embedded && objBody . _embedded [ 'fx:items' ] ) {
194
- return objBody . _embedded [ 'fx:items' ] ;
195
+ return objBody . _embedded [ 'fx:items' ] . filter ( item => item . name !== customOptions ( ) . skip . updateinfo ) ;
195
196
}
196
197
return [ ] ;
197
198
}
You can’t perform that action at this time.
0 commit comments