Firewall: Log Files: Live View - possible race condition when changing limit, make sure the fetch before the change isn't populated into the grid.

This commit is contained in:
Ad Schellevis 2022-10-13 15:56:36 +02:00
parent edd0d25423
commit c730ce2023

View File

@ -234,6 +234,9 @@
if (status == 'error') {
// stop poller on failure
$("#auto_refresh").prop('checked', false);
} else if (last_digest != '' && $("#grid-log > tbody > tr").length == 1){
// $("#limit").change(); called, this request should be discarted (data grid reset)
return;
} else if (data !== undefined && data.length > 0) {
let record;
let trs = [];