Skip to content

Commit 82d0c15

Browse files
authored
Merge pull request #5 from SundeepChand/bugs/story-with-links
Fixed unable to create story with links
2 parents 17a81c1 + b045571 commit 82d0c15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/NewStory.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ const NewStory = () => {
137137
setDescriptionError(true)
138138
return
139139
}
140+
data.description = data.description.replace(/"/g, '\\"') // Replace all occurences of " with \"
140141
await axios.post(
141142
`${apiURL}/graphql`,
142143
{

0 commit comments

Comments
 (0)