fix: admin/logs: crash if accessing console with hide-apis

Massimo Melina committed Dec 10, 2023 at 12:25 UTC a9cfc4370c6c6cb068b29603a031f40035da5363
2 files changed +2 -2
admin/src/LogsPage.ts
+1 -1
@@ -58,7 +58,7 @@ function LogFile({ file, pause, showApi }: { file: string, pause?: boolean, show
58 return h(DataTable, {
59 error,
60 loading: connecting,
61 - rows: useMemo(() => showApi ? list : list.filter(x => !x.uri.startsWith(API_URL)), [list, showApi]),
61 + rows: useMemo(() => showApi || list?.[0]?.uri === undefined ? list : list.filter(x => !x.uri.startsWith(API_URL)), [list, showApi]), //TODO TypeError: l.uri is undefined
62 compact: true,
63 componentsProps: {
64 pagination: {
admin/src/index.css
+1 -1
@@ -25,7 +25,7 @@ code {
25 background-color: #8882;
26 }
27 .MuiDataGrid-cell {
28 - line-height: 1em;
28 + line-height: 1.1em;
29 }
30
31 .wrap .MuiDataGrid-cellContent { white-space: normal }