Commit d654e301 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fixup! erp5_document_scanner: Improve checkValidity method from scannerjs

make jslint happy
parent 17b1d6d8
...@@ -675,7 +675,8 @@ ...@@ -675,7 +675,8 @@
if (key.indexOf("blob_url_") !== -1) { if (key.indexOf("blob_url_") !== -1) {
if (!gadget.state[key]) { if (!gadget.state[key]) {
return false; return false;
} else if (has_thumbnail) { }
if (gadget.state[key] && !has_thumbnail) {
has_thumbnail = true; has_thumbnail = true;
} }
} }
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>981.29544.47237.55466</string> </value> <value> <string>981.29551.59362.28552</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1580162507.4</float> <float>1580163643.67</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