HubPress / hubpress.io

A web application to build your blog on GitHub
MIT License
2.81k stars 2.62k forks source link

Can't edit posts #514

Closed kunicmarko20 closed 7 years ago

kunicmarko20 commented 7 years ago

If I try to edit a post I get a console error:

screenshot at aug 11 08-48-24

also, all my posts are now duplicated in admin panel and on frontend.

anthonny commented 7 years ago

Hi @kunicmarko20 I think you can fix with a synchronize in the posts list.

Do you have this error for each post you create?

kunicmarko20 commented 7 years ago

Hi @anthonny,

I can create post normally but if I synchronize my list it gets duplicated. That error occurs only for editing. I deleted posts and added them again and now they are not duplicated on frontend but I still get that error and they are duplicated in the admin panel.

anthonny commented 7 years ago

Ok i have a workaround to clean your list

1- Be sure that you have saved all your drafts 2- Open the dev tools on your HubPress page and in the console write that:

new PouchDB('hubpress-kunicmarko20-kunicmarko20.github.io').destroy().then(function(){console.log('destroyed')})

3- Refresh your tab / page 4- Sync your content

Then it should be cool

anthonny commented 7 years ago

Hi here, the 0.8.1 is out, could you upgrade your instance and tell me if now everything is ok please?

kunicmarko20 commented 7 years ago

Works great now, thank you!