Commit 40034e51 authored by flothoni's avatar flothoni

model_loader; add a bypass to load vidjil file with 'null' value for clones field

This can happen when vidjil is launched with '--no-clone' arg, or when no clone are founded
Link to #3861
parent 3135e520
Pipeline #117999 passed with stages
in 7 minutes and 32 seconds
......@@ -280,6 +280,10 @@ Model_loader.prototype = {
//filter clones (remove clone beyond the limit)
self.clones = [];
var index = 0
// Bypass null values given by vidjil-algo (if --no-clone for example)
if (data.clones == null) {
data.clones = []
}
for (var i = 0; i < data.clones.length; i++) {
if (data.clones[i].top <= limit) {
// real
......
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