Skip to content

Commit 424b2ce

Browse files
committed
history remove created hook fetching users
1 parent 654615c commit 424b2ce

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

frontend/src/views/app/History.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,12 @@ export default {
143143
this.filteredCount = count;
144144
},
145145
},
146-
async created() {
147-
await this.fetchUsers('People I viewed');
148-
this.filteredCount = this.recommendations.length;
149-
},
150146
async beforeRouteEnter(to, from, next) {
151147
next(async (vm) => {
152148
if (from.name !== 'Users' || !vm.visitUser) {
153149
vm.browseAgain();
154150
await vm.fetchUsers('People I viewed');
151+
vm.filteredCount = vm.recommendations.length;
155152
vm.$el.scrollTop = 0;
156153
}
157154
vm.prevRoute = from;

0 commit comments

Comments
 (0)