fix: admin/logs: page size couldn't be changed

Massimo Melina committed May 5, 2022 at 23:56 UTC 29987054accd0df8c9b380b1ea295e534398b92e
1 file changed +1 -3
admin/src/LogsPage.ts
+1 -3
@@ -12,7 +12,7 @@ export default function LogsPage() {
12 return h(Fragment, {},
13 h(Tabs, { value: tab, onChange(ev,i){ setTab(i) } },
14 files.map(f => h(Tab, { label: logLabels[f], key: f })) ),
15 - h(LogFile, { key: tab, file: files[tab] }), // without key, some state is unwantedly preserved across files
15 + h(LogFile, { key: tab, file: files[tab] }), // without key, some state is accidentally preserved across files
16 )
17 }
18
@@ -25,8 +25,6 @@ function LogFile({ file }: { file: string }) {
25 autoHeight: true,
26 rows: list as any,
27 rowHeight: 47,
28 - pageSize: 10,
29 - rowsPerPageOptions: [5, 10, 20, 100],
28 componentsProps: {
29 pagination: {
30 showFirstButton: true,