We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ef4d1 commit 2f40157Copy full SHA for 2f40157
inertia/pages/posts/form.vue
@@ -138,7 +138,7 @@ async function generateVideoChapters() {
138
form.chapters = result
139
140
toast.success('Chapters generated successfully from JSON')
141
- } else if (typeof result === 'string' && result.startsWith('```json[')) {
+ } else if (typeof result === 'string' && result.startsWith('```json')) {
142
const chapters = JSON.parse(result.replace('```json', '').replace('```', ''))
143
form.chapters = chapters
144
0 commit comments