fix(log-viewer): fix formatting last line without newline

pull/4406/head
Ricardo Matsui 2020-10-26 16:35:54 -07:00
parent 8e246c203c
commit ae3809cefd
1 changed files with 4 additions and 0 deletions

View File

@ -127,6 +127,10 @@ angular.module('portainer.docker').factory('LogHelper', [
}
}
if (line) {
formattedLogs.push({ line, spans });
}
return formattedLogs;
};