From 69d0dbbf1cfa0db4db12d411ee97284f308803fe Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 24 Jun 2024 11:09:29 +0300 Subject: [PATCH] email collapse fix --- client/src/helpers/misc/summernote-custom.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/helpers/misc/summernote-custom.js b/client/src/helpers/misc/summernote-custom.js index 4f2d292406..31a6b5d547 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,10 @@ function init(langSets) { const options = context.options; const view = /** @type {import('view').default} */options.espoView; + if (!view) { + return; + } + context.memo('button.tableParams', () => { return ui.button({ className: '',