Fix invalid attributes error in some blocks (https://github.com/woocommerce/woocommerce-blocks/pull/1254)
This commit is contained in:
parent
c55a387657
commit
f32011e2d3
|
@ -64,6 +64,7 @@ class HandpickedProducts extends AbstractProductGrid {
|
|||
'orderby' => $this->get_schema_orderby(),
|
||||
'products' => $this->get_schema_list_ids(),
|
||||
'contentVisibility' => $this->get_schema_content_visibility(),
|
||||
'isPreview' => $this->get_schema_boolean( false ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ class ProductTag extends AbstractProductGrid {
|
|||
'type' => 'string',
|
||||
'default' => 'any',
|
||||
),
|
||||
'isPreview' => $this->get_schema_boolean( false ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,6 +74,7 @@ class ProductsByAttribute extends AbstractProductGrid {
|
|||
'editMode' => $this->get_schema_boolean( true ),
|
||||
'orderby' => $this->get_schema_orderby(),
|
||||
'rows' => $this->get_schema_number( wc_get_theme_support( 'product_blocks::default_rows', 1 ) ),
|
||||
'isPreview' => $this->get_schema_boolean( false ),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue