webui: fix custom headers persistence in UI (derived)

This commit is contained in:
Pascal 2026-01-15 20:34:32 +01:00
parent 3360f60b94
commit a377605f60
1 changed files with 1 additions and 5 deletions

View File

@ -23,11 +23,7 @@
}: Props = $props();
// Local state for header pairs
let headerPairs = $state<KeyValuePair[]>(parseHeadersToArray(headers));
$effect(() => {
headerPairs = parseHeadersToArray(headers);
});
let headerPairs = $derived<KeyValuePair[]>(parseHeadersToArray(headers));
// Sync header pairs to parent when they change
function updateHeaderPairs(newPairs: KeyValuePair[]) {