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(medusa): Select config should be undefined if length === 0 #2469

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Oct 19, 2022

What

The query select when only one select value is present and that value is one of the totals, the result of the select is an empty array and therefore query.select is not set to undefined and try to select the totals column in the db.

FIXES CORE-706

@changeset-bot
Copy link

changeset-bot bot commented Oct 19, 2022

🦋 Changeset detected

Latest commit: faca088

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@medusajs/medusa Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adrien2p adrien2p closed this Oct 20, 2022
@adrien2p adrien2p reopened this Oct 20, 2022
@adrien2p adrien2p marked this pull request as ready for review October 20, 2022 10:00
@adrien2p adrien2p requested a review from a team as a code owner October 20, 2022 10:00
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

LGTM!

@olivermrbl olivermrbl merged commit 13611e3 into develop Oct 20, 2022
@olivermrbl olivermrbl deleted the fix/select-query-when-totals branch October 20, 2022 11:25
@github-actions github-actions bot mentioned this pull request Oct 20, 2022
ymaheshwari1 pushed a commit to ymaheshwari1/medusa that referenced this pull request Oct 26, 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.

2 participants