Skip to content

Commit

Permalink
fix: 修复编辑器中抽屉及弹框收集器map的key设置错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanxue authored and jianbing.chen committed Dec 18, 2024
1 parent 84b0d12 commit dc9ffec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor/src/components/FloatingCollector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ const FloatingCollector = (props: FloatingCollectorProps) => {
<div className={`${styles.collectorContent} ${styles.expanded}`}>
<div className={styles.itemList}>
{currentItems.map((item) => (
<Tooltip title="单击选中,双击打开" placement="top">
<Tooltip title="单击选中,双击打开" placement="top" key={item.id}>
<Button
key={item.id}
onClick={() => handleItemClick(item, 'single')}
onDoubleClick={() => handleItemClick(item, 'double')}
className={`${styles.item} ${selectedItem === item.id ? styles.active : ''}`}
Expand Down

0 comments on commit dc9ffec

Please sign in to comment.