luci-base: don't fail getInitList if no indexes can be determined
Gracefully handle missing indexes in the luci rpcd plugin getInitList procedure. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
008fa18878
commit
7e30a5e11e
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ const methods = {
|
|||
let idx = init_index(name);
|
||||
|
||||
scripts[name] = {
|
||||
index: idx[0],
|
||||
stop: idx[1],
|
||||
index: idx?.[0],
|
||||
stop: idx?.[1],
|
||||
enabled: init_enabled(name)
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue