mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 05:11:24 +08:00
fix: shortcut icons sorting disorder (#12151)
This commit is contained in:
parent
2008d70707
commit
c13dc6eab5
@ -261,9 +261,12 @@ const InputbarTools = ({ scope, assistantId, session }: InputbarToolsNewProps) =
|
||||
const sourceId = source.droppableId
|
||||
const destinationId = destination.droppableId
|
||||
|
||||
const visibleKeys = visibleTools.map((t) => t.key)
|
||||
const hiddenKeys = hiddenTools.map((t) => t.key)
|
||||
|
||||
const newToolOrder: ToolOrderConfig = {
|
||||
visible: [...toolOrder.visible],
|
||||
hidden: [...toolOrder.hidden]
|
||||
visible: [...visibleKeys],
|
||||
hidden: [...hiddenKeys]
|
||||
}
|
||||
|
||||
const sourceArray = sourceId === 'inputbar-tools-visible' ? 'visible' : 'hidden'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user