sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The backup popup bug

CarloBu opened this issue ยท comments

I found the bug in the backup popup logic. It shows up even when the changes are saved. It looks like there is no comparing step with the local backup data of the field and the field data stored at md/yaml/json.

to recreate:
go to the created collection field, make changes, save, exit, then open the same field again, and the popup shows up to restore the data, that is already saved. At least this bug is happening in the local environment, I haven't tested it at the cdn yet.

backup_bug.mp4

The backup is deleted when an entry is saved. Will check why the popup still appears.

Oh ok, maybe this is an issue with my environment, I use default Chrome in this situation.

I tried with the minimal setup, I got the same popup.

backend:
  name: github
  repo: your/repo
  branch: main
  base_url: http://localhost:4321
  auth_endpoint: /api/auth

media_folder: /src/assets/imgs
public_folder: /src/assets/imgs

collections:
  - label: test
    name: testField
    folder: src/content/test
    create: true
    fields:
      - label: Test
        name: title
        widget: string

Could reproduce the issue with a new entry ๐Ÿ˜… Fix on the way.

Fixed in v0.29.1 ๐Ÿ™‡๐Ÿผ

yep, can confirm, it's now working fine ๐Ÿ‘