Skip to content

Commit bdf7827

Browse files
committed
refetch recommendations after using passed prop recommedations
1 parent 5584f61 commit bdf7827

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/views/app/Browse.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ export default {
5050
},
5151
recommendationsAnalysisDone: false,
5252
showCount: 10,
53+
firstTimeBrowsing: true,
5354
}),
5455
methods: {
5556
async fetchUsers() {
56-
if (this.recommendationsFromSettingUp) {
57+
if (this.firstTimeBrowsing && this.recommendationsFromSettingUp) {
5758
this.recommendations = this.recommendationsFromSettingUp;
59+
this.firstTimeBrowsing = false;
5860
} else {
5961
const recommendationsRequest = await this.$http.get('/recommendations');
6062
this.recommendations = recommendationsRequest.data.recommendations;

0 commit comments

Comments
 (0)