From f7911d15d4aae5a7667cf21f14ca426bffb8f559 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:56:10 -0500 Subject: [PATCH] ChatBarButtons: Fix Mistake --- src/api/ChatButtons.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/ChatButtons.tsx b/src/api/ChatButtons.tsx index 0422a84a1..09d44b21a 100644 --- a/src/api/ChatButtons.tsx +++ b/src/api/ChatButtons.tsx @@ -84,11 +84,10 @@ export function _injectButtons(buttons: { key: string, node: ReactNode; }[], ord if (props.disabled) return; let anchorIndex = -1; - let currentOrder = anchorIndex + 1; for (const [key, Button] of buttonFactories) { order[key] = anchorIndex; - anchorIndex = --currentOrder; + anchorIndex--; buttons.push({ key,