From cb8e0576274976c99ab8939dee0c6c5ed334463f Mon Sep 17 00:00:00 2001 From: IlyaDoronin Date: Thu, 24 Aug 2023 14:23:25 +0300 Subject: [PATCH] fix: uploaded video --- src/pages/Questions/helpQuestions.tsx | 14 ++++---------- src/stores/questions.ts | 3 +-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/pages/Questions/helpQuestions.tsx b/src/pages/Questions/helpQuestions.tsx index dffdf397..97ed3c08 100644 --- a/src/pages/Questions/helpQuestions.tsx +++ b/src/pages/Questions/helpQuestions.tsx @@ -38,7 +38,6 @@ export default function HelpQuestions({ totalIndex }: HelpQuestionsProps) { if (fileList?.length) { const clonContent = listQuestions[totalIndex].content; clonContent.hint.video = URL.createObjectURL(fileList[0]); - clonContent.hint.videoUrl = ""; updateQuestionsList(totalIndex, { content: clonContent }); handleClose(); } @@ -103,13 +102,9 @@ export default function HelpQuestions({ totalIndex }: HelpQuestionsProps) { onClick={handleOpen} sx={{ justifyContent: "flex-start" }} > - {listQuestions[totalIndex].content.hint.videoUrl || - listQuestions[totalIndex].content.hint.video ? ( + {listQuestions[totalIndex].content.hint.video ? (