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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user