mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Type guard for null, undefined and empty value
This commit is contained in:
@@ -523,7 +523,7 @@
|
||||
let filter;
|
||||
if (that.options.node) {
|
||||
let nodeFilter = that.options.node.filter;
|
||||
if (typeof nodeFilter === "string" || typeof nodeFilter === "object") {
|
||||
if ((typeof nodeFilter === "string" || typeof nodeFilter === "object") && nodeFilter) {
|
||||
if (!Array.isArray(nodeFilter)) {
|
||||
nodeFilter = [nodeFilter];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user