Skip to content

Commit c3e2f9e

Browse files
committed
fix
1 parent 85bf387 commit c3e2f9e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/parts/data/fetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,10 +1323,10 @@ fetch.fetchEvents = function(params) {
13231323
*/
13241324
fetch.fetchTimeObj = function(collection, params, isCustomEvent, options) {
13251325
fetchTimeObj(collection, params, isCustomEvent, options, function(output) {
1326-
if (params?.qstring?.event) {
1326+
if (params.qstring?.event) {
13271327
output.eventName = params.qstring.event;
13281328
}
1329-
common.returnOutput(params ?? {}, output);
1329+
common.returnOutput(params, output);
13301330
});
13311331
};
13321332

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,9 +1075,9 @@
10751075

10761076
countlyAllEvents.service.fetchSelectedEventsOverview(context, period)
10771077
.then(function(resp) {
1078-
if (resp && context) {
1078+
if (resp) {
10791079
context.commit("setSelectedEventsOverview", countlyAllEvents.helpers.getSelectedEventsOverview(context, resp) || {});
1080-
context.commit("setLegendData", countlyAllEvents.helpers.getLegendData(context || {}));
1080+
context.commit("setLegendData", countlyAllEvents.helpers.getLegendData(context));
10811081
}
10821082
});
10831083
}

0 commit comments

Comments
 (0)