Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-02 18:11:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-02 18:11:07 +0300
commite36443c1d657343410d3de25d52ae0fe9ee67d8d (patch)
tree3a18c9c8efbd20c3799046a2ea77fcbb3bba163f /app/assets/javascripts/notes
parented509186782d16d2bbcb34ac73303e8cb3a9d5a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/notes')
-rw-r--r--app/assets/javascripts/notes/stores/getters.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/notes/stores/getters.js b/app/assets/javascripts/notes/stores/getters.js
index 6876220f75c..5ad7a811726 100644
--- a/app/assets/javascripts/notes/stores/getters.js
+++ b/app/assets/javascripts/notes/stores/getters.js
@@ -94,9 +94,9 @@ export const getUserDataByProp = (state) => (prop) => state.userData && state.us
export const descriptionVersions = (state) => state.descriptionVersions;
export const canUserAddIncidentTimelineEvents = (state) => {
- return (
- state.userData.can_add_timeline_events &&
- state.noteableData.type === constants.NOTEABLE_TYPE_MAPPING.Incident
+ return Boolean(
+ state.userData?.can_add_timeline_events &&
+ state.noteableData.type === constants.NOTEABLE_TYPE_MAPPING.Incident,
);
};