diff --git a/src/app/components/previews/DialogPreview.tsx b/src/app/components/previews/DialogPreview.tsx index 85edbb08..48ecadab 100644 --- a/src/app/components/previews/DialogPreview.tsx +++ b/src/app/components/previews/DialogPreview.tsx @@ -107,8 +107,13 @@ function DialogActions({ dialog }: { dialog: any }) { } return {dialogs.map((d: any) => { - let text = Identifier.parse(d).path.replaceAll('/', ' ').replaceAll('_', ' ') - text = text.charAt(0).toUpperCase() + text.substring(1) + let text = '' + if (typeof d === 'string') { + text = Identifier.parse(d).path.replaceAll('/', ' ').replaceAll('_', ' ') + text = text.charAt(0).toUpperCase() + text.substring(1) + } else { + text = d?.external_title ?? d?.title ?? '' + } return