diff --git a/frontend/app/components/Dashboard/components/WidgetChart/LongLoader.tsx b/frontend/app/components/Dashboard/components/WidgetChart/LongLoader.tsx
index e6dcd547d..36a0712f9 100644
--- a/frontend/app/components/Dashboard/components/WidgetChart/LongLoader.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetChart/LongLoader.tsx
@@ -23,12 +23,12 @@ function LongLoader({ onClick }: { onClick: () => void }) {
This is taking longer than expected.
-
- Use sample data to speed up query and get a faster response.
-
-
+ {/**/}
+ {/* Use sample data to speed up query and get a faster response.*/}
+ {/*
*/}
+ {/**/}
)
}
diff --git a/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx b/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx
index 36de7b09a..29b837043 100644
--- a/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx
+++ b/frontend/app/components/Dashboard/components/WidgetSessions/WidgetSessions.tsx
@@ -126,9 +126,9 @@ function WidgetSessions(props: Props) {
seriesJson[0].filter.filters.push(widget.startPoint.toJson());
}
if (widget.metricType === USER_PATH) {
- if (seriesJson[0].filter.filters[0].value[0] === '' && widget.data.nodes) {
+ if (seriesJson[0].filter.filters[0].value[0] === '' && widget.data.nodes?.length) {
seriesJson[0].filter.filters[0].value = widget.data.nodes[0].name
- } else if (seriesJson[0].filter.filters[0].value[0] === '' && !widget.data.nodes) {
+ } else if (seriesJson[0].filter.filters[0].value[0] === '' && !widget.data.nodes?.length) {
// no point requesting if we don't have starting point picked by api
return;
}