From fd422da06f684f50c34be7adc87f4a465f776034 Mon Sep 17 00:00:00 2001 From: Primakov Alexandr Alexandrovich Date: Wed, 30 Oct 2024 14:44:12 +0300 Subject: [PATCH] fix update lesson --- src/pages/lesson-list/components/item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/lesson-list/components/item.tsx b/src/pages/lesson-list/components/item.tsx index 9674d7c..94bcc45 100644 --- a/src/pages/lesson-list/components/item.tsx +++ b/src/pages/lesson-list/components/item.tsx @@ -91,7 +91,7 @@ export const Item: React.FC = ({ onCancel={() => { setEdit(false) }} - lesson={{ id, name, date }} + lesson={{ _id: id, id, name, date }} title={'Редактирование лекции'} nameButton={'Сохранить'} />