fix: (regression 0.47.0) admin/accounts: blank page with zero accounts #316

Massimo Melina committed Aug 10, 2023 at 09:21 UTC d4c5c0bced01d5bc7023a1dc6f8003e597138d46
2 files changed +2 -2
admin/src/AccountsPage.ts
+1 -1
@@ -105,7 +105,7 @@ export default function AccountsPage() {
105 list?.length! > 0 && h(Typography, { p: 1 }, `${list!.length} account(s)`),
106 ) ),
107 h(Grid, { item: true, md: 5 },
108 - !list?.length && h(Alert, { severity: 'info' }, md`To access administration _remotely_ you will need to create a user account with admin permission`),
108 + !list?.length && h(Alert, { severity: 'info' }, md`To access administration <u>remotely</u> you will need to create a user account with admin permission`),
109 h(TreeView, {
110 multiSelect: true,
111 sx: { pr: 4, pb: 2, minWidth: '15em' },
admin/src/md.ts
+1 -1
@@ -15,7 +15,7 @@ export default function md(text: string | TemplateStringsArray, { linkTarget='',
15 return replaceStringToReact(text, /(`|_|\*\*?)(.+)\1|(\n)|\[(.+)\]\((.+)\)|<([^ >/]+)>(.*)<\/\6>|<([^ >/]+) *\/>/g, m =>
16 m[4] ? h(Link, { href: m[5], target: linkTarget }, onText(m[4]))
17 : m[3] ? h('br')
18 - : m[1] ? h((TAGS as any)[ m[1] ], {}, onText(m[2]))
18 + : m[1] ? h((TAGS as any)[ m[1] ] || Fragment, {}, onText(m[2]))
19 : h(m[6] || m[8], {}, m[7]),
20 onText)
21 }