From 1bc0eb92a2518770f24658ab1959c3a9e725ea3c Mon Sep 17 00:00:00 2001 From: Misode Date: Mon, 14 Jul 2025 04:00:28 +0200 Subject: [PATCH] Fix #775 handle inline dialogs in dialog_list preview --- src/app/components/previews/DialogPreview.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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