Fix reactivity issue in sidebar entry

This commit is contained in:
Caleb Owens 2024-11-06 17:57:23 +01:00
parent 5def9c8724
commit 26bae0a907

View File

@ -109,9 +109,10 @@
}
}
const stackBranches = branchListing.virtualBranch?.stackBranches;
const filteredStackBranches =
stackBranches && stackBranches.length > 0 ? stackBranches : [branchListing.name];
const stackBranches = $derived(branchListing.virtualBranch?.stackBranches);
const filteredStackBranches = $derived(
stackBranches && stackBranches.length > 0 ? stackBranches : [branchListing.name]
);
</script>
<SidebarEntry