Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Fix productUrlPathMapper #92

Merged
merged 2 commits into from
Jul 10, 2019
Merged

Conversation

Loac-fr
Copy link
Contributor

@Loac-fr Loac-fr commented Jun 25, 2019

Indexation was throwing an error in the case where the first category of the product didn't have a name.

We now loop over categories and select the first valid one (having a name)
Original Slack conversation : https://vuestorefront.slack.com/messages/CA68P1JUF/convo/CA68P1JUF-1560431537.259500/

Fix edge case in `productUrlPathMapper` sending undefined value to -_slugify`, causing `TypeError: Cannot read property 'toString' of undefined` during indexation 
See https://vuestorefront.slack.com/archives/CA68P1JUF/p1560431537259500
@lukeromanowicz lukeromanowicz changed the base branch from master to develop July 10, 2019 10:05
@lukeromanowicz lukeromanowicz changed the base branch from develop to master July 10, 2019 10:08
@lukeromanowicz lukeromanowicz changed the base branch from master to develop July 10, 2019 10:08
@lukeromanowicz lukeromanowicz merged commit e7030f7 into vuestorefront:develop Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants