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 sorting docs in ReferenceSelectView #758

Merged
merged 2 commits into from
Jul 26, 2019
Merged

Conversation

ohmoses
Copy link
Contributor

@ohmoses ohmoses commented Jul 23, 2019

Closes #642

@ohmoses ohmoses requested a review from eduardoboucas July 23, 2019 19:19
@@ -120,8 +120,8 @@ export default class DocumentTableList extends React.Component {
}

handleTableSort(value, sortBy, sortOrder) {
const {onBuildBaseUrl} = this.props
const link = onBuildBaseUrl({
const {buildSortUrl = this.props.onBuildBaseUrl} = this.props
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you clarify this part? Is this so that sorting will use buildSortUrl and fall back to onBuildBaseUrl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, exactly

@eduardoboucas
Copy link
Contributor

Is this good to go?

@eduardoboucas eduardoboucas merged commit 55ff79a into develop Jul 26, 2019
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.

Sorting in reference select view
3 participants