Restore from cache retrieval failed after closed page by accident
- Dominant language
- JavaScript
- Stars
- 19.4k
- Forks
- 3.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
**Describe the bug**
This issue was caught here: https://github.com/decaporg/decap-cms/discussions/6964
When retrieving values from backup, the page gets reloaded after a while, reverting to the values previously saved.
**To Reproduce**
1. Open an existing entry
2. Change some values
3. Reload page
4. Choose to retrieve from backup when prompted
5. Observe that the page reloads after a while
**Expected behavior**
The form should keep the values that were retrieved from backup and should not refresh.
**Screenshots**
https://github.com/decaporg/decap-cms/assets/19568230/84e22190-67de-48af-86ff-457fd44dfc94
**Applicable Versions:**
- Decap CMS version: 3.1.0-beta.1
- Git provider: Github or local backend
- OS: MacOS 13.0.1 (arm)
- Browser version Chrome 119.0.6045.159
**CMS configuration**
```
local_backend: true
backend:
name: git-gateway
branch: main
squash_merges: true
publish_mode: editorial_workflow
media_folder: static/media/uploads
public_folder: /media/uploads
slug:
encoding: ascii
clean_accents: true
i18n:
structure: multiple_files
locales: [en, de, si]
collections:
- name: posts
label: Posts
label_singular: post
folder: content/posts
create: true
slug: "{{slug}}"
i18n: true
editor:
preview: false
fields: [
{name: title, widget: string, i18n: true},
{name: description, widget: text, i18n: true},
{name: image, widget: image, i18n: duplicate, required: false},
{name: body, widget: markdown, i18n: true},
]
```
Contributor guide
Assessment
This issue has not been assessed yet.