Skip to content

Commit 85bf387

Browse files
committed
resolve conv
1 parent e994b4b commit 85bf387

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

api/parts/data/fetch.js

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

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

Lines changed: 3 additions & 3 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) {
1079-
context?.commit("setSelectedEventsOverview", countlyAllEvents.helpers.getSelectedEventsOverview(context, resp) || {});
1080-
context?.commit("setLegendData", countlyAllEvents.helpers.getLegendData(context || {}));
1078+
if (resp && context) {
1079+
context.commit("setSelectedEventsOverview", countlyAllEvents.helpers.getSelectedEventsOverview(context, resp) || {});
1080+
context.commit("setLegendData", countlyAllEvents.helpers.getLegendData(context || {}));
10811081
}
10821082
});
10831083
}

0 commit comments

Comments
 (0)