From e4d5ffb281dae8877f119bd80d23334a7fc5e507 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 1 Jun 2021 15:59:14 +0300 Subject: [PATCH] fix --- client/src/view-helper.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/view-helper.js b/client/src/view-helper.js index ff82da90d5..9977949e10 100644 --- a/client/src/view-helper.js +++ b/client/src/view-helper.js @@ -533,10 +533,12 @@ define('view-helper', ['lib!client/lib/purify.min.js'], function () { let handlerList = this.metadata.get(['clientDefs', 'Global', 'viewSetupHandlers', type]) || []; - handlerList = handlerList - .concat( - this.metadata.get(['clientDefs', scope, 'viewSetupHandlers', type]) || [] - ); + if (scope) { + handlerList = handlerList + .concat( + this.metadata.get(['clientDefs', scope, 'viewSetupHandlers', type]) || [] + ); + } if (handlerList.length === 0) { return;