fix: fixed issue in which submissions are not reflected gracefully until page reload

ListView throws error if initialized without emptyState which was causing the component to not reload when number of submissions was 0.
This commit is contained in:
Fahid Latheef Alungal
2025-02-16 18:27:38 +05:30
parent aaa2eea5e6
commit 8b1058e577

View File

@@ -258,14 +258,22 @@
</Button>
</div>
<div
v-if="quiz.data.show_submission_history && attempts?.data"
v-if="
quiz.data.show_submission_history &&
attempts?.data &&
attempts.data.length > 0
"
class="mt-10"
>
<ListView
:columns="getSubmissionColumns()"
:rows="attempts?.data"
row-key="name"
:options="{ selectable: false, showTooltip: false }"
:options="{
selectable: false,
showTooltip: false,
emptyState: { title: __('No Quiz submissions found') },
}"
>
</ListView>
</div>