Don't attempt to render the internal chart until a type has been set

This commit is contained in:
Dean 2022-10-24 16:31:58 +01:00
parent e41cfcd58e
commit 72028b57ec
1 changed files with 31 additions and 29 deletions

View File

@ -64,6 +64,7 @@
limit, limit,
}} }}
> >
{#if dataProviderId && chartType}
<BlockComponent <BlockComponent
type={chartType} type={chartType}
props={{ props={{
@ -93,5 +94,6 @@
dateColumn, dateColumn,
}} }}
/> />
{/if}
</BlockComponent> </BlockComponent>
</Block> </Block>