refactor: enhance log handling in Proxmox Firewall view by directly assigning logs to a reactive variable, improving data management and ensuring accurate log updates

This commit is contained in:
2025-12-02 16:07:35 -05:00
parent 152a753cf2
commit fef69f2dca

View File

@@ -321,14 +321,10 @@
@endif
@if(count($firewallLogs) > 0)
<script>
if (!window.firewallLogsStatic) {
window.firewallLogsStatic = @js($firewallLogs);
}
</script>
<div
wire:key="firewall-logs-static-{{ md5(serialize($firewallLogs)) }}"
x-data="{
logs: window.firewallLogsStatic || [],
logs: @js($firewallLogs),
searchTerm: '',
sortField: 'timestamp_iso',
sortDirection: 'desc',