From b31d0deed419b3a09d34521ee247a3b899520c90 Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 7 Mar 2024 15:31:09 +0300 Subject: [PATCH] merged --- .gitignore | 1 + src/components/Views/EditView/EditView.tsx | 2 +- src/pages/edit.page.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 60d6161e..6dca0a65 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ bun.lockb /blob-report/ /playwright/.cache/ /plawright-report/ +target \ No newline at end of file diff --git a/src/components/Views/EditView/EditView.tsx b/src/components/Views/EditView/EditView.tsx index 3ef489ca..83da483d 100644 --- a/src/components/Views/EditView/EditView.tsx +++ b/src/components/Views/EditView/EditView.tsx @@ -68,7 +68,7 @@ export const EditView = (props: Props) => { // TODO: проверить сохранение черновика в local storage (не работает) const draft = getDraftFromLocalStorage(props.shout.id) if (draft) { - setForm(Object.keys(draft).length !== 0 ? draft : { shoutId: props.shout.id }); + setForm(Object.keys(draft).length !== 0 ? draft : { shoutId: props.shout.id }) } else { setForm({ slug: props.shout.slug, diff --git a/src/pages/edit.page.tsx b/src/pages/edit.page.tsx index 551e5254..ef33f712 100644 --- a/src/pages/edit.page.tsx +++ b/src/pages/edit.page.tsx @@ -39,7 +39,7 @@ export const EditPage = () => { if (shout_id) { try { await loadMyShout(parseInt(shout_id, 10)) - } catch(e) { + } catch (e) { console.error(e) } }