This commit is contained in:
josh 2025-09-10 16:59:48 +01:00 committed by GitHub
parent 2f9ba09606
commit c7fc95ee1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 38 additions and 23 deletions

View file

@ -82,9 +82,9 @@ export type BranchMessagesProps = HTMLAttributes<HTMLDivElement>;
export const BranchMessages = ({ children, ...props }: BranchMessagesProps) => {
const { currentBranch, setBranches, branches } = useBranch();
const childrenArray = useMemo(() =>
Array.isArray(children) ? children : [children],
[children]
const childrenArray = useMemo(
() => (Array.isArray(children) ? children : [children]),
[children],
);
// Use useEffect to update branches when they change