merged
This commit is contained in:
parent
248d06decd
commit
b31d0deed4
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,3 +22,4 @@ bun.lockb
|
|||
/blob-report/
|
||||
/playwright/.cache/
|
||||
/plawright-report/
|
||||
target
|
|
@ -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,
|
||||
|
|
|
@ -39,7 +39,7 @@ export const EditPage = () => {
|
|||
if (shout_id) {
|
||||
try {
|
||||
await loadMyShout(parseInt(shout_id, 10))
|
||||
} catch(e) {
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user