@@ -567,6 +567,12 @@ export default defineComponent({
567
567
true
568
568
);
569
569
570
+ // below line required for pass by reference
571
+ // if we don't set blank, then same object from cache is being set
572
+ // and that doesn't call the watchers,
573
+ // so it will not be updated when we switch to different chart types
574
+ // which doesn't have field list and coming back to field list
575
+ dashboardPanelData.meta.stream.selectedStreamFields = [];
570
576
// assign the schema
571
577
dashboardPanelData.meta.stream.selectedStreamFields =
572
578
fieldWithSchema?.schema ?? [];
@@ -662,13 +668,12 @@ export default defineComponent({
662
668
const getStreamList = async (stream_type: any) => {
663
669
await getStreams(stream_type, false).then((res: any) => {
664
670
data.schemaList = res.list;
665
-
666
671
// below line required for pass by reference
667
672
// if we don't set blank, then same object from cache is being set
668
673
// and that doesn't call the watchers,
669
674
// so it will not be updated when we switch to different chart types
670
675
// which doesn't have field list and coming back to field list
671
- dashboardPanelData.meta.stream.streamResults = []
676
+ dashboardPanelData.meta.stream.streamResults = [];
672
677
673
678
dashboardPanelData.meta.stream.streamResults = res.list;
674
679
});
0 commit comments