We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1248d0e commit 1e882a9Copy full SHA for 1e882a9
1 file changed
packages/super-editor/src/extensions/pagination/pagination-helpers.js
@@ -55,6 +55,7 @@ export const initPaginationData = async (editor) => {
55
* @returns {Promise<Object>} An object containing the height of the section, the section editor and the section container
56
*/
57
const getSectionHeight = async (editor, data) => {
58
+ if (!data) return {};
59
return new Promise((resolve) => {
60
const editorContainer = document.createElement('div');
61
editorContainer.className = 'super-editor';
0 commit comments