Skip to content

Commit fbddb00

Browse files
committed
update count when choosing history option
1 parent 996cf5d commit fbddb00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/views/app/History.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="flex items-center justify-center md:justify-start w-full mb-4">
77
<h1
88
class="text-3xl sm:text-5xl my-4 inline-block text-center leading-none onboarding-sub-container-content-heading">
9-
{{filteredCount}}</h1>
9+
{{filteredCount || 0}}</h1>
1010
<DropdownDisplayChoiceHistory
1111
v-on:save-single-choice="updateHistory"
1212
class="inline-block ml-4"
@@ -129,6 +129,7 @@ export default {
129129
if (key === 'history') {
130130
this.browseAgain();
131131
this.fetchUsers(value);
132+
this.filteredCount = this.recommendations.count;
132133
}
133134
},
134135
filteredCountSave(...args) {

0 commit comments

Comments
 (0)