Merge pull request #4078 from IgorA100/patch-148

Fix: Added getStat execution error handling Frame page
This commit is contained in:
Isaac Connor
2024-06-14 17:33:34 -04:00
committed by GitHub

View File

@@ -54,6 +54,12 @@ function getStat(params) {
$j.getJSON(thisUrl + '?view=request&request=stats&raw=true', params)
.done(function(data) {
$j('#frameStatsTable').empty().append('<tbody>');
if (data.result == "Error") {
console.log(`Error running getStat function: ${data.message}`);
statsBtn.prop('disabled', true);
statsBtn.prop('title', 'No statistics available for this frame');
return;
}
if (!data.raw.length) {
statsBtn.prop('disabled', true);
statsBtn.prop('title', 'No statistics available for this frame');