diff --git a/client/src/helpers/misc/summernote-custom.js b/client/src/helpers/misc/summernote-custom.js index 4f2d292406..33bf6fe5bb 100644 --- a/client/src/helpers/misc/summernote-custom.js +++ b/client/src/helpers/misc/summernote-custom.js @@ -69,6 +69,10 @@ function init(langSets) { const options = context.options; const view = /** @type {import('view').default} */options.espoView; + if (!view) { + return; + } + context.memo('button.cellParams', () => { return ui.button({ className: '', @@ -144,6 +148,12 @@ function init(langSets) { const options = context.options; const view = /** @type {import('view').default} */options.espoView; + if (!view) { + // Prevents an issue with a collapsed modal. + // @todo Revise. + return; + } + context.memo('button.tableParams', () => { return ui.button({ className: '',