Showing
1 changed file
with
2 additions
and
0 deletions
@@ -57,6 +57,8 @@ watch( | @@ -57,6 +57,8 @@ watch( | ||
57 | () => props.chartConfig.option.dataset, | 57 | () => props.chartConfig.option.dataset, |
58 | (newData: string) => { | 58 | (newData: string) => { |
59 | const { dataset, publicId, organizationId, platform, isShare } = props.chartConfig.option as typeof typeOption | 59 | const { dataset, publicId, organizationId, platform, isShare } = props.chartConfig.option as typeof typeOption |
60 | + | ||
61 | + if(!dataset) return | ||
60 | iframeLink.value = createScadaPageLink({ id: dataset, platform, publicId, organizationId, }, isShare ? ScadaModeEnum.SHARE : ScadaModeEnum.LIGHTBOX, false) | 62 | iframeLink.value = createScadaPageLink({ id: dataset, platform, publicId, organizationId, }, isShare ? ScadaModeEnum.SHARE : ScadaModeEnum.LIGHTBOX, false) |
61 | }, | 63 | }, |
62 | { | 64 | { |