Skip to content

Commit

Permalink
fix: process not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 1, 2023
1 parent 45da766 commit f5d65eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/components/ConnectionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ export default (props: {
</DragOverlay>
</DragDropProvider>
</div>
<label class="modal-backdrop" htmlFor="connection-modal">
Close
</label>
<label class="modal-backdrop" for="connection-modal" />
</div>
</>
)
Expand Down
7 changes: 5 additions & 2 deletions src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ export default () => {
},
{
accessorKey: AccessorKey.Process,
accessorFn: (row) => row.metadata.process || '-',
accessorFn: (row) =>
row.metadata.process ||
row.metadata.processPath.replace(/^.*[/\\](.*)$/, '$1') ||
'-',
},
{
accessorKey: AccessorKey.Host,
Expand Down Expand Up @@ -237,7 +240,7 @@ export default () => {
placeholder="Search"
onInput={(e) => setSearch(e.target.value)}
/>
<label htmlFor="connection-modal" class="btn btn-circle">
<label for="connection-modal" class="btn btn-circle">
<IconSettings />
</label>
<ConnectionsModal
Expand Down
1 change: 1 addition & 0 deletions src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ declare module 'solid-js' {
namespace JSX {
interface Directives {
form: {}
sortable: {}
}
}
}
Expand Down

0 comments on commit f5d65eb

Please sign in to comment.