log view: comment length fixup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-03-04 14:54:59 +01:00
parent 80ea69b416
commit 6971ce9d6b

View File

@ -53,9 +53,8 @@ Ext.define('Proxmox.panel.LogView', {
let data = viewModel.get('data');
if (first === data.first && total === data.total && lines.length === data.lines) {
// before there is any real output, we get 'no output' as a single line.
// so always update if we only have one to be sure to catch
// the first real line of output
// before there is any real output, we get 'no output' as a single line, so always
// update if we only have one to be sure to catch the first real line of output
if (total !== 1) {
return; // same content, skip setting and scrolling
}