Skip to content

Commit

Permalink
VRECollections.mine() === (new VRECollections).fetch() (#224)
Browse files Browse the repository at this point in the history
As of #181, /api/collections only retrieves the user's own collections
by default. The .mine method is retained for easier porting and as an
easy way to resume the distinction if it is added again in the future.
  • Loading branch information
jgonggrijp committed Oct 3, 2024
1 parent 2868c23 commit fcd01a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/vre/collection/collection.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export var VRECollections = APICollection.extend({
*/
mine: function(myCollections) {
myCollections = myCollections || new VRECollections();
myCollections.fetch({url: myCollections.url + 'mine/'});
myCollections.fetch();
return myCollections;
},
});

0 comments on commit fcd01a6

Please sign in to comment.