Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: display the saved datatable page size (#743)

pttydou8a89ded815b4
diff --git a/frontend/app/components/DataTable.vue b/frontend/app/components/DataTable.vue
index ee2589f5..a3113c30 100644
--- a/frontend/app/components/DataTable.vue
+++ b/frontend/app/components/DataTable.vue
@@ -44,7 +44,7 @@
<span>
<span>{{ t('components.dataTable.rowsPerPage') }}</span>
<!-- eslint-disable-next-line vue/no-parsing-error -->
- <select @change="(e: Event) => paginator.setMaxPerPage(parseInt((<HTMLSelectElement>e.target)?.value) || 10)">
+ <select :value="itemsPerPage" @change="(e: Event) => paginator.setMaxPerPage(parseInt((<HTMLSelectElement>e.target)?.value) || 10)">
<option value="10">10</option>
<option value="30">30</option>
<option value="50">50</option>