We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a06483e commit 03e2e7dCopy full SHA for 03e2e7d
2 files changed
OpenFlowNodeRED/src/Config.ts
@@ -31,8 +31,10 @@ export class Config {
31
32
public static baseurl(): string {
33
var matches = Config.nodered_id.match(/\d+/);
34
- if (matches.length > 0) {
35
- Config.nodered_id = matches[matches.length - 1]; // Just grab the last number
+ if (matches !== null && matches !== undefined) {
+ if (matches.length > 0) {
36
+ Config.nodered_id = matches[matches.length - 1]; // Just grab the last number
37
+ }
38
}
39
if (Config.nodered_domain_schema != "") {
40
Config.domain = Config.nodered_domain_schema.replace("$nodered_id$", Config.nodered_id)
VERSION
@@ -1 +1 @@
1
-0.0.172
+0.0.173
0 commit comments