Skip to content

Commit 01a7b21

Browse files
committed
fixes
1 parent 34e1b62 commit 01a7b21

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

api/utils/taskmanager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ taskmanager.checkIfRunning = function(options, callback) {
622622
if (options.request) {
623623
query.request = options.request;
624624
}
625-
if (!query.request && options && options.params && options.params.qstring) {
625+
if (!query.request && options.params && options.params.qstring) {
626626
var json = options.params.qstring || {};
627627
json = JSON.parse(JSON.stringify(json));
628628
//make sure not to have same task already running

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,9 @@
449449
return res[context.state.selectedEventName].data;
450450
},
451451
getAllEventsList: function(eventsList, groupList) {
452-
if (!eventsList) {
453-
return [];
454-
}
455-
var map = eventsList.map || {};
456452
var allEvents = [];
457453
if (eventsList && eventsList.list) {
454+
var map = eventsList.map || {};
458455
eventsList.list.forEach(function(item) {
459456
if (!map[item] || (map[item] && (map[item].is_visible || map[item].is_visible === undefined))) {
460457
var label;
@@ -1040,9 +1037,6 @@
10401037
context.commit("setChartLoading", value);
10411038
},
10421039
fetchRefreshAllEventsData: function(context) {
1043-
if (!context) {
1044-
return;
1045-
}
10461040
var period = context.rootGetters["countlyCommon/period"];
10471041
return countlyAllEvents.service.fetchAllEventsData(context, period)
10481042
.then(function(res) {

0 commit comments

Comments
 (0)