summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-07-24 14:20:01 +0530
committerKushal Pandya <kushal@gitlab.com>2018-07-24 14:20:01 +0530
commit26b12d6f83354028690361edbde35bb73cf442b8 (patch)
tree2bc983dad3d962701f622a5d95bfd1786a05f629
parent906eb7dc1c2a2ab1332c784e133153485b950807 (diff)
downloadgitlab-ce-26b12d6f83354028690361edbde35bb73cf442b8.tar.gz
Use `parseInt` to convert markdownVersion into number
-rw-r--r--app/assets/javascripts/notes/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/index.js b/app/assets/javascripts/notes/index.js
index 6dd4c9d66ac..3aef30c608c 100644
--- a/app/assets/javascripts/notes/index.js
+++ b/app/assets/javascripts/notes/index.js
@@ -15,7 +15,7 @@ document.addEventListener('DOMContentLoaded', () => {
const notesDataset = document.getElementById('js-vue-notes').dataset;
const parsedUserData = JSON.parse(notesDataset.currentUserData);
const noteableData = JSON.parse(notesDataset.noteableData);
- const { markdownVersion } = notesDataset;
+ const markdownVersion = parseInt(notesDataset.markdownVersion, 10);
let currentUserData = {};
noteableData.noteableType = notesDataset.noteableType;