Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const mapStateToProps = state => ({
images: getProductImages(state),
product: getCurrentBaseProduct(state),
});
const mapStateToProps = state => ({
images: getProductImages(state),
product: getCurrentBaseProduct(state),
});
const mapStateToProps = (state, props) => ({
images: getProductImages(state, {
...props,
formats: productImageFormats.get(PRODUCT_SLIDER_IMAGE_COLLECTION_KEY),
}),
product: getCurrentBaseProduct(state, props),
});
const mapStateToProps = (state, props) => ({
images: getProductImages(state, {
...props,
formats: productImageFormats.get(GALLERY_SLIDER_IMAGE_COLLECTION_KEY),
}) || [],
product: getCurrentBaseProduct(state, props),
});
const mapStateToProps = (state, props) => ({
images: getProductImages(state, {
...props,
formats: productImageFormats.get(GALLERY_SLIDER_IMAGE_COLLECTION_KEY),
}) || [],
product: getCurrentBaseProduct(state, props),
});