Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal editor show to public version when a link is empty #654

Closed
lpirola opened this issue Jun 7, 2017 · 2 comments
Closed

Modal editor show to public version when a link is empty #654

lpirola opened this issue Jun 7, 2017 · 2 comments

Comments

@lpirola
Copy link
Contributor

lpirola commented Jun 7, 2017

No description provided.

@gabrielrtakeda
Copy link
Contributor

Solution

To solve this, follow the steps described in Purge empty links v2.6
from nossas/slate-editor repository.

SQL to get the data

It needs to run the sql query below, to get the widgets that uses the slatejs editor to run the migration script.

SELECT id,
       (settings -> 'content')::json AS doc
FROM widgets
WHERE settings -> 'content' ~ '^{"document';

@gabrielrtakeda
Copy link
Contributor

Rebase 👇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants