prepareArticle(article) {
    if (!article) return {};

    return {
      ...article,
      content: _isEmpty(article.content) ? {} : slate.objectToState(article.content),
      description: slate.textToState(article.description),
      link: slate.textToState(article.link),
      title: slate.textToState(article.title)
    };
  }
// Prepares article content to use Slate's state objects
Prepares article content to use Slate's state objects
Prepares article content to use Slate ' s state objects
prepareArticle(article) {
    if (!article) return {};
    return {
      ...article,
      content: _isEmpty(article.content) ? {} : slate.objectToState(article.content),
      description: slate.textToState(article.description),
      link: slate.textToState(article.link),
      title: slate.textToState(article.title)
    };
  }
prepareArticle ( article ) { if ( ! article ) return { } ; return { ... article , content : _isEmpty ( article . content ) ? { } : slate . objectToState ( article . content ) , description : slate . textToState ( article . description ) , link : slate . textToState ( article . link ) , title : slate . textToState ( article . title ) } ; }
Prepares article content to use Slate's state objects
Prepares article content to use Slate ' s state objects