ChatBarButtons: Fix Mistake

This commit is contained in:
thororen1234 2025-11-11 16:56:10 -05:00
parent a81a67c61d
commit f7911d15d4
No known key found for this signature in database

View file

@ -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,