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: fix bug when media_gallery array is empty #1267

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

bensinca
Copy link
Contributor

In getGallery rather check the length of an array to get an accurate bool value than simple the array which will always return true.

Related Issue

#1266

Motivation and Context

If product type is configurable_product then check the length of the media_gallery array to get an accurate bool value, as an array will always return true.

In `getGallery` rather check the length of an array to get an accurate bool value than simple the array which will always return true.
@Frodigo
Copy link
Collaborator

Frodigo commented Jul 15, 2022

Hi @bensinca, thanks for your contribution. Could you change the base branch from the main to the develop branch?

@Frodigo Frodigo changed the title Fix bug when media_gallery array is empty fix: fix bug when media_gallery array is empty Jul 15, 2022
@bensinca bensinca changed the base branch from main to develop July 15, 2022 17:24
@Frodigo Frodigo added this to the 1.0.1 milestone Jul 18, 2022
@Frodigo Frodigo merged commit e232fe4 into vuestorefront:develop Jul 18, 2022
@bensinca bensinca deleted the patch-1 branch July 19, 2022 09:22
@Frodigo Frodigo mentioned this pull request Aug 1, 2022
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.

3 participants