Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return channel id as an iterable when a store only has a single storefront #849

Merged
merged 1 commit into from
Jan 21, 2022
Merged

fix: return channel id as an iterable when a store only has a single storefront #849

merged 1 commit into from
Jan 21, 2022

Conversation

matthewvolk
Copy link
Contributor

What?

After adding the ability to use stencil-push to push themes to multiple storefronts, users began reporting an error not ok -- VariationActivationError: channelIds.map is not a function

This PR includes a fix to return an iterable from the promptUserToSelectChannel method even when a store only has a single storefront.

Tickets / Documentation

Screenshots (if appropriate)

Screen Shot 2022-01-21 at 12 03 57 PM

Screen Shot 2022-01-21 at 12 05 20 PM

cc @bigcommerce/storefront-team

…channel

- lib/stencil-push.utils.js - return channel id as an array if a store only has a single channel
- lib/stencil-push.utils.spec.js - tests added
Copy link
Contributor

@jairo-bc jairo-bc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jairo-bc jairo-bc merged commit a6c79d3 into bigcommerce:master Jan 21, 2022
@matthewvolk matthewvolk deleted the fix-single-channel-storefront-push branch January 21, 2022 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants