ChatBarButtons: Fix Mistake
This commit is contained in:
parent
a81a67c61d
commit
f7911d15d4
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue