Commit af6c9522 authored by Joel's avatar Joel

fix: no id hide op

parent b7b3084c
...@@ -95,6 +95,7 @@ const List: FC<IListProps> = ({ ...@@ -95,6 +95,7 @@ const List: FC<IListProps> = ({
<span>{item.name}</span> <span>{item.name}</span>
</div> </div>
{item.id !== '-1' && (
<div className={cn(s.opBtn, 'shrink-0')} onClick={e => e.stopPropagation()}> <div className={cn(s.opBtn, 'shrink-0')} onClick={e => e.stopPropagation()}>
<ItemOperation <ItemOperation
isPinned={isPinned} isPinned={isPinned}
...@@ -103,6 +104,7 @@ const List: FC<IListProps> = ({ ...@@ -103,6 +104,7 @@ const List: FC<IListProps> = ({
onDelete={() => onDelete(item.id)} onDelete={() => onDelete(item.id)}
/> />
</div> </div>
)}
</div> </div>
) )
})} })}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment