From 8c8b0f3773389b03fbe5bbdaff22ae90a38a3809 Mon Sep 17 00:00:00 2001 From: Gayan Sandamal Date: Thu, 10 Oct 2024 17:29:18 +0530 Subject: [PATCH] Ensure groupType has its default value --- nodes/config/ui_group.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodes/config/ui_group.js b/nodes/config/ui_group.js index f82b77950..d0001686c 100644 --- a/nodes/config/ui_group.js +++ b/nodes/config/ui_group.js @@ -7,6 +7,10 @@ module.exports = function (RED) { RED.nodes.createNode(this, config) const node = this + if (!config.groupType || typeof config.groupType === 'undefined') { + config.groupType = 'default' + } + const page = RED.nodes.getNode(config.page) if (!('showTitle' in config)) {