Skip to content

Commit 3aeb38c

Browse files
committed
Fixed type error
1 parent 43152cc commit 3aeb38c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/SummaryTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const SummaryTemplate = ({ updateMeetings }: SummaryTemplateProps) => {
115115

116116
async function generatePdf(markdown: any) {
117117
const embedRegex = /\{% embed url="([^"]+)" %\}/g;
118-
const updatedMarkdown = markdown.replace(embedRegex, (match, url) => {
118+
const updatedMarkdown = markdown.replace(embedRegex, (match: any, url: any) => {
119119
// Check if the URL is a YouTube video
120120
if (url.includes("youtube.com") || url.includes("youtu.be")) {
121121
return `[Watch Video](${url})`; // Replace with a descriptive text for videos

0 commit comments

Comments
 (0)