@tn-pulse-suivi/notion-ui-comps 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +37 -36
package/dist/index.cjs
CHANGED
|
@@ -21221,7 +21221,7 @@ function EditorProvider(props) {
|
|
|
21221
21221
|
);
|
|
21222
21222
|
}
|
|
21223
21223
|
const showToCIfHeadingsExist = (0, import_react208.useCallback)((editor2, showToC, lOrig) => {
|
|
21224
|
-
if (showToC) {
|
|
21224
|
+
if (showToC && editor2?.isInitialized) {
|
|
21225
21225
|
const headingType = editor2.schema.nodes.heading;
|
|
21226
21226
|
let hasHeading = false;
|
|
21227
21227
|
editor2.state.doc.descendants((node) => {
|