File tree 3 files changed +3
-3
lines changed
NewWidget/LeftContainer/WidgetGraph
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function FullView({
64
64
65
65
useEffect ( ( ) => {
66
66
setCurrentGraphRef ( fullViewRef ) ;
67
- } , [ fullViewRef , setCurrentGraphRef ] ) ;
67
+ } , [ setCurrentGraphRef ] ) ;
68
68
69
69
const { selectedDashboard, isDashboardLocked } = useDashboard ( ) ;
70
70
Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ function WidgetGraphComponent({
244
244
245
245
const graphClick = useGraphClickToShowButton ( {
246
246
graphRef : currentGraphRef ?. current ? currentGraphRef : graphRef ,
247
- isButtonEnabled : widget ?. query ?. builder ?. queryData . some (
247
+ isButtonEnabled : ( widget ?. query ?. builder ?. queryData ?? [ ] ) . some (
248
248
( q ) =>
249
249
q . dataSource === DataSource . TRACES || q . dataSource === DataSource . LOGS ,
250
250
) ,
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ function WidgetGraph({
97
97
// context redirection to explorer pages
98
98
const graphClick = useGraphClickToShowButton ( {
99
99
graphRef,
100
- isButtonEnabled : selectedWidget ?. query ?. builder ?. queryData . some (
100
+ isButtonEnabled : ( selectedWidget ?. query ?. builder ?. queryData ?? [ ] ) . some (
101
101
( q ) =>
102
102
q . dataSource === DataSource . TRACES || q . dataSource === DataSource . LOGS ,
103
103
) ,
You can’t perform that action at this time.
0 commit comments