Commit 4ac5e42c authored by Jérome Perrin's avatar Jérome Perrin

Input_viewSimulation: do not fail if data.result does not contain result_list in the input

parent e48ed804
......@@ -64,6 +64,9 @@
});
}).push(function(data){
data = JSON.parse(data);
if (!data.result.result_list) {
data.result.result_list = [];
}
// XXX option to always add ?
if (data.general.reset_result_list) {
data.result.result_list = [];
......
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