Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
1e1757fa6c0f
Commit
a26338fd
authored
Jul 24, 2018
by
Kushal Pandya
Browse files
Use `parseInt` to convert markdownVersion into number
parent
0dd13d3f5574
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/notes/index.js
View file @
1e1757fa
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment