synchronizeTableOfContents() {
    Promise.resolve()
      .then(() => {
        store.dispatch('toc/updateClosureTable', buildTocClosureTable());
      })
      .then(() => {
        // check if toc nodes should be expanded at start of application
        if (!store.state.settings.tocCollapsedInitially) {
          store.dispatch('toc/openAllNodes');
        }
      });
  }
/**
   * Updates the root node in the table of contents
   * store
   */
Updates the root node in the table of contents
store
Updates the root node in the table of contents store
synchronizeTableOfContents() {
    Promise.resolve()
      .then(() => {
        store.dispatch('toc/updateClosureTable', buildTocClosureTable());
      })
      .then(() => {
        if (!store.state.settings.tocCollapsedInitially) {
          store.dispatch('toc/openAllNodes');
        }
      });
  }
synchronizeTableOfContents ( ) { Promise . resolve ( ) . then ( ( ) => { store . dispatch ( 'toc/updateClosureTable' , buildTocClosureTable ( ) ) ; } ) . then ( ( ) => { if ( ! store . state . settings . tocCollapsedInitially ) { store . dispatch ( 'toc/openAllNodes' ) ; } } ) ; }
Updates the root node in the table of contents
 store
Updates the root node in the table of contents store
// check if toc nodes should be expanded at start of application