diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-07-24 14:20:01 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-07-24 14:20:01 +0530 |
commit | 26b12d6f83354028690361edbde35bb73cf442b8 (patch) | |
tree | 2bc983dad3d962701f622a5d95bfd1786a05f629 | |
parent | 906eb7dc1c2a2ab1332c784e133153485b950807 (diff) | |
download | gitlab-ce-26b12d6f83354028690361edbde35bb73cf442b8.tar.gz |
Use `parseInt` to convert markdownVersion into number
-rw-r--r-- | app/assets/javascripts/notes/index.js | 2 |
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; |