Skip to content

Commit 2f40157

Browse files
committed
feat(post): added support for markdown response with JSON coded data.
1 parent 42ef4d1 commit 2f40157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inertia/pages/posts/form.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async function generateVideoChapters() {
138138
form.chapters = result
139139
140140
toast.success('Chapters generated successfully from JSON')
141-
} else if (typeof result === 'string' && result.startsWith('```json[')) {
141+
} else if (typeof result === 'string' && result.startsWith('```json')) {
142142
const chapters = JSON.parse(result.replace('```json', '').replace('```', ''))
143143
form.chapters = chapters
144144

0 commit comments

Comments
 (0)