diff --git a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx index d61a7f3fc6..7fd670346a 100644 --- a/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx +++ b/frontend/src/container/NewWidget/LeftContainer/WidgetGraph/WidgetGraphContainer.tsx @@ -40,7 +40,7 @@ function WidgetGraphContainer({ if ( selectedGraph !== PANEL_TYPES.LIST && - queryResponse.data?.payload.data.result.length === 0 + queryResponse.data?.payload.data?.result?.length === 0 ) { return ( @@ -50,7 +50,7 @@ function WidgetGraphContainer({ } if ( selectedGraph === PANEL_TYPES.LIST && - queryResponse.data?.payload.data.newResult.data.result.length === 0 + queryResponse.data?.payload.data.newResult?.data?.result?.length === 0 ) { return (