Fix missing popover text (#1329)

This commit is contained in:
0HyperCube
2023-07-19 22:04:48 +01:00
committed by Keavon Chambers
parent 80cc5bee73
commit acb46bc1d3

View File

@@ -141,7 +141,7 @@
{#if popoverButton}
<PopoverButton {...exclude(popoverButton, ["header", "text", "optionsWidget"])}>
<TextLabel bold={true}>{popoverButton.header}</TextLabel>
{#if popoverButton.optionsWidget}
{#if popoverButton.optionsWidget?.length}
<WidgetLayout layout={{ layout: popoverButton.optionsWidget, layoutTarget: layoutTarget }} />
{:else}
<TextLabel multiline={true}>{popoverButton.text}</TextLabel>