Skip to content

Commit 8d1bf55

Browse files
committed
fix another deepscan problems
1 parent 8de0640 commit 8d1bf55

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

api/parts/data/fetch.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,12 @@ fetch.fetchTimeObj = function(collection, params, isCustomEvent, options) {
13261326
if (params?.qstring?.event) {
13271327
output.eventName = params.qstring.event;
13281328
}
1329-
common.returnOutput(params, output);
1329+
if (params) {
1330+
common.returnOutput(params, output);
1331+
}
1332+
else {
1333+
console.error("Params is null or undefined.");
1334+
}
13301335
});
13311336
};
13321337

frontend/express/public/core/events/javascripts/countly.details.models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@
10761076
countlyAllEvents.service.fetchSelectedEventsOverview(context, period)
10771077
.then(function(resp) {
10781078
if (resp) {
1079-
context.commit("setSelectedEventsOverview", countlyAllEvents.helpers.getSelectedEventsOverview(context, resp) || {});
1079+
context?.commit("setSelectedEventsOverview", countlyAllEvents.helpers.getSelectedEventsOverview(context, resp) || {});
10801080
context?.commit("setLegendData", countlyAllEvents.helpers.getLegendData(context || {}));
10811081
}
10821082
});

0 commit comments

Comments
 (0)