Commit 7d84f425 authored by Alain Takoudjou's avatar Alain Takoudjou

Mynij Search: Fix error on search when no storage is configured

parent 0f41faf4
......@@ -140,7 +140,7 @@
.push(function (result) {
console.log("search done");
var i, promise_list = [];
if (result.length === 0) {
if (!result || result.length === 0) {
return gadget.state.result_gadget.addItem(
{
title : "No results found",
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>987.27157.35558.36266</string> </value>
<value> <string>987.27166.43455.58931</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1603180719.78</float>
<float>1603199326.69</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -282,7 +282,7 @@ input[type="button"]:hover{
transform: translateX(-50%);
position: relative;
background: white;
padding: 20px;
padding-top: 20px;
padding-bottom: 80px;
border-radius: 5px;
min-width: 240px;
......
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>987.26225.49315.5085</string> </value>
<value> <string>987.27174.65288.50875</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>1603181219.77</float>
<float>1603184533.69</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment