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 @@ ...@@ -140,7 +140,7 @@
.push(function (result) { .push(function (result) {
console.log("search done"); console.log("search done");
var i, promise_list = []; var i, promise_list = [];
if (result.length === 0) { if (!result || result.length === 0) {
return gadget.state.result_gadget.addItem( return gadget.state.result_gadget.addItem(
{ {
title : "No results found", title : "No results found",
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>987.27157.35558.36266</string> </value> <value> <string>987.27166.43455.58931</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1603180719.78</float> <float>1603199326.69</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -282,7 +282,7 @@ input[type="button"]:hover{ ...@@ -282,7 +282,7 @@ input[type="button"]:hover{
transform: translateX(-50%); transform: translateX(-50%);
position: relative; position: relative;
background: white; background: white;
padding: 20px; padding-top: 20px;
padding-bottom: 80px; padding-bottom: 80px;
border-radius: 5px; border-radius: 5px;
min-width: 240px; min-width: 240px;
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>987.26225.49315.5085</string> </value> <value> <string>987.27174.65288.50875</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1603181219.77</float> <float>1603184533.69</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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