Skip to content

Commit

Permalink
Update room order from capacity to price
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielle authored and gabrielle committed Sep 11, 2020
1 parent ad2ca4a commit 2ab668e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RoomProvider extends Component{
let response = await Client.getEntries({
content_type: "islandResort", //narrow down what items to show
//order: 'sys.createdAt' //order items by publish date
order: "fields.capacity" //order items by multiple parameters
order: "fields.price" //order items by multiple parameters
});

let rooms = this.formatData(response.items); //items to response.items for contentful api to work instead of just local data
Expand Down

0 comments on commit 2ab668e

Please sign in to comment.