openwisp/openwisp-controller

[bug] SEND COMMAND option not displayed when it should be

csyost85 opened this issue · 2 comments

if((typeof(owControllerApiHost) !== 'undefined')|| isDeviceRecoverForm()) {

the SEND COMMAND option is not displayed even though it should be.
Caused by incorrect logic in command.js

Logic starting at line 9

if((typeof(owControllerApiHost) !== 'undefined')|| isDeviceRecoverForm()) {
    return;
}

typeof(owControllerApiHost) !== 'undefined' should be true for it to work however line 9 will cause the display code to exit ff true. Recommend updating logic, or change back to previous logic
if (isDeviceRecoverForm())

Hi @csyost85, we haven't noticed issues with this logic, could you give us steps to reproduce the issue? Or is this reproducible on the openwisp demo system?

This should be fixed in the current master.