Skip to content

Commit

Permalink
fix: admin/logs: crash if accessing console with hide-apis
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Dec 10, 2023
1 parent 1e23571 commit a9cfc43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/src/LogsPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function LogFile({ file, pause, showApi }: { file: string, pause?: boolean, show
return h(DataTable, {
error,
loading: connecting,
rows: useMemo(() => showApi ? list : list.filter(x => !x.uri.startsWith(API_URL)), [list, showApi]),
rows: useMemo(() => showApi || list?.[0]?.uri === undefined ? list : list.filter(x => !x.uri.startsWith(API_URL)), [list, showApi]), //TODO TypeError: l.uri is undefined
compact: true,
componentsProps: {
pagination: {
Expand Down
2 changes: 1 addition & 1 deletion admin/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ code {
background-color: #8882;
}
.MuiDataGrid-cell {
line-height: 1em;
line-height: 1.1em;
}

.wrap .MuiDataGrid-cellContent { white-space: normal }
Expand Down

0 comments on commit a9cfc43

Please sign in to comment.