This commit is contained in:
Untone 2024-03-07 15:31:09 +03:00
parent 248d06decd
commit b31d0deed4
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ bun.lockb
/blob-report/ /blob-report/
/playwright/.cache/ /playwright/.cache/
/plawright-report/ /plawright-report/
target

View File

@ -68,7 +68,7 @@ export const EditView = (props: Props) => {
// TODO: проверить сохранение черновика в local storage (не работает) // TODO: проверить сохранение черновика в local storage (не работает)
const draft = getDraftFromLocalStorage(props.shout.id) const draft = getDraftFromLocalStorage(props.shout.id)
if (draft) { 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 { } else {
setForm({ setForm({
slug: props.shout.slug, slug: props.shout.slug,

View File

@ -39,7 +39,7 @@ export const EditPage = () => {
if (shout_id) { if (shout_id) {
try { try {
await loadMyShout(parseInt(shout_id, 10)) await loadMyShout(parseInt(shout_id, 10))
} catch(e) { } catch (e) {
console.error(e) console.error(e)
} }
} }