diff --git a/src/opnsense/www/js/opnsense_bootgrid.js b/src/opnsense/www/js/opnsense_bootgrid.js index 3d886d5b80..afeb3beceb 100644 --- a/src/opnsense/www/js/opnsense_bootgrid.js +++ b/src/opnsense/www/js/opnsense_bootgrid.js @@ -2244,6 +2244,10 @@ class UIBootgrid { } replace(rows) { + if (!Array.isArray(rows) || rows.length === 0) { + throw new Error('Cannot replace without data. Use clear() to clear data, or reload() to refresh'); + } + this.table.replaceData(rows); }