Skip to content
Snippets Groups Projects
Commit a751119f authored by mathias.chouet's avatar mathias.chouet
Browse files

#241 : fix bug in example session

parent 3d600c82
No related branches found
No related tags found
No related merge requests found
......@@ -102,8 +102,7 @@ export class VarResultsComponent extends ResultsComponent {
const list = [];
// log messages for this computation step
if (this._messages.length > 0) {
if (re.log.messages.length > 0) {
if (this._messages.length > 0 && re.log.messages.length > 0) {
// find highest log level to display
let highest = 100;
for (const lm of re.log.messages) {
......@@ -115,7 +114,6 @@ export class VarResultsComponent extends ResultsComponent {
isWarning: (highest === MessageSeverity.WARNING),
isError: (highest === MessageSeverity.ERROR)
});
}
} else {
list.push({ messages: [] }); // empty log element to preserve row length
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment