Skip to content

Commit

Permalink
reload stats after changing projectname from url
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 10, 2024
1 parent 9191f73 commit 2ad6423
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<q-separator />
</q-card-section>
<q-card-section class="q-gutter-md">
<StatisticsProject v-if="sampleNames.length" :project-name="projectName" :samples="samples"></StatisticsProject>
<StatisticsProject :key="reload" v-if="sampleNames.length" :project-name="projectName" :samples="samples"></StatisticsProject>
</q-card-section>
<q-card-section>
<div class="row q-gutter-md" style="justify-content: right">
Expand Down Expand Up @@ -242,6 +242,7 @@ export default defineComponent({
this.samples = response.data;
this.sampleNames = this.samples.map(sample => sample.sampleName);
this.reloadSamples = false;
this.reload += 1;
})
.catch((error) => {
notifyError({ error: error });
Expand Down

0 comments on commit 2ad6423

Please sign in to comment.