We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf72dd commit 1bc0eb9Copy full SHA for 1bc0eb9
src/app/components/previews/DialogPreview.tsx
@@ -107,8 +107,13 @@ function DialogActions({ dialog }: { dialog: any }) {
107
}
108
return <ColumnsGrid columns={dialog.columns ?? 2}>
109
{dialogs.map((d: any) => {
110
- let text = Identifier.parse(d).path.replaceAll('/', ' ').replaceAll('_', ' ')
111
- text = text.charAt(0).toUpperCase() + text.substring(1)
+ let text = ''
+ if (typeof d === 'string') {
112
+ text = Identifier.parse(d).path.replaceAll('/', ' ').replaceAll('_', ' ')
113
+ text = text.charAt(0).toUpperCase() + text.substring(1)
114
+ } else {
115
+ text = d?.external_title ?? d?.title ?? ''
116
+ }
117
return <Button label={text} width={dialog.button_width ?? 150} />
118
})}
119
</ColumnsGrid>
0 commit comments