Skip to content

Commit

Permalink
fix(web): ssr fails with ReactiveList (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul committed Jun 24, 2019
1 parent 1ccff2a commit 9e19bf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/vue/src/components/result/ReactiveList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ ReactiveList.generateQueryOptions = props => {
if (props.sortOptions) {
options.sort = [
{
[props.sortOptions[this.sortOptionIndex].dataField]: {
order: props.sortOptions[this.sortOptionIndex].sortBy,
[props.sortOptions[0].dataField]: {
order: props.sortOptions[0].sortBy,
},
},
];
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/components/result/ReactiveList.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ class ReactiveList extends Component {
if (props.sortOptions) {
options.sort = [
{
[props.sortOptions[this.sortOptionIndex].dataField]: {
order: props.sortOptions[this.sortOptionIndex].sortBy,
[props.sortOptions[0].dataField]: {
order: props.sortOptions[0].sortBy,
},
},
];
Expand Down

0 comments on commit 9e19bf6

Please sign in to comment.