Skip to content

Commit

Permalink
Fix for autocomplete xhr call showing undefined for httpAdminRoot.
Browse files Browse the repository at this point in the history
* not going to assume that httpAdminRoot is defined
/issues/2
  • Loading branch information
zachowj committed Sep 27, 2018
1 parent 7775216 commit 43a5ca9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nodes/call-service/call-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports = function(RED) {
RED.nodes.registerType('api-call-service', CallServiceNode, {
settings: {
apiCallServiceAdminPrefix: {
value: RED.settings.httpAdminRoot,
value: RED.settings.httpAdminRoot || '/',
exportable: true
}
}
Expand Down
2 changes: 1 addition & 1 deletion nodes/current-state/current-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = function(RED) {
RED.nodes.registerType('api-current-state', CurrentStateNode, {
settings: {
apiCurrentStateAdminPrefix: {
value: RED.settings.httpAdminRoot,
value: RED.settings.httpAdminRoot || '/',
exportable: true
}
}
Expand Down
2 changes: 1 addition & 1 deletion nodes/events-state-changed/events-state-changed.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ module.exports = function(RED) {
RED.nodes.registerType('server-state-changed', ServerStateChangedNode, {
settings: {
serverStateChangedAdminPrefix: {
value: RED.settings.httpAdminRoot,
value: RED.settings.httpAdminRoot || '/',
exportable: true
}
}
Expand Down
2 changes: 1 addition & 1 deletion nodes/poll-state/poll-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = function(RED) {
RED.nodes.registerType('poll-state', TimeSinceStateNode, {
settings: {
pollStateAdminPrefix: {
value: RED.settings.httpAdminRoot,
value: RED.settings.httpAdminRoot || '/',
exportable: true
}
}
Expand Down
2 changes: 1 addition & 1 deletion nodes/trigger-state/trigger-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ module.exports = function(RED) {
RED.nodes.registerType('trigger-state', TriggerState, {
settings: {
triggerStateAdminPrefix: {
value: RED.settings.httpAdminRoot,
value: RED.settings.httpAdminRoot || '/',
exportable: true
}
}
Expand Down

0 comments on commit 43a5ca9

Please sign in to comment.