summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pages
diff options
context:
space:
mode:
authorHarry Kiselev <harry.kiselev@gmail.com>2018-12-13 13:27:20 +0000
committerFatih Acet <acetfatih@gmail.com>2018-12-13 13:27:20 +0000
commit1ead46323fb83973dd7957a86bc826d30061c50f (patch)
treec00742e036dd633838845b55ce4863163b9c1782 /app/assets/javascripts/pages
parentc7ac2c715abf45846748b056239d2e6586ce29f7 (diff)
downloadgitlab-ce-1ead46323fb83973dd7957a86bc826d30061c50f.tar.gz
Fix calendar events fetching error on private profile page.
Diffstat (limited to 'app/assets/javascripts/pages')
-rw-r--r--app/assets/javascripts/pages/users/user_tabs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/users/user_tabs.js b/app/assets/javascripts/pages/users/user_tabs.js
index 006eaa08cd1..1c3fd58ca74 100644
--- a/app/assets/javascripts/pages/users/user_tabs.js
+++ b/app/assets/javascripts/pages/users/user_tabs.js
@@ -208,6 +208,8 @@ export default class UserTabs {
loadActivityCalendar() {
const $calendarWrap = this.$parentEl.find('.tab-pane.active .user-calendar');
+ if (!$calendarWrap.length) return;
+
const calendarPath = $calendarWrap.data('calendarPath');
AjaxCache.retrieve(calendarPath)