merged
This commit is contained in:
parent
248d06decd
commit
b31d0deed4
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -22,3 +22,4 @@ bun.lockb
|
||||||
/blob-report/
|
/blob-report/
|
||||||
/playwright/.cache/
|
/playwright/.cache/
|
||||||
/plawright-report/
|
/plawright-report/
|
||||||
|
target
|
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user