mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-23 20:55:41 +00:00
chore: show caret for empty folders
This commit is contained in:
@@ -86,7 +86,7 @@ const CollectionItem = ({item, collectionUid}) => {
|
||||
}}
|
||||
>
|
||||
<div style={{width:16}}>
|
||||
{item.items && item.items.length ? (
|
||||
{item.type === 'folder' ? (
|
||||
<IconChevronRight size={16} strokeWidth={2} className={iconClassName} style={{color: 'rgb(160 160 160)'}}/>
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
@@ -122,6 +122,7 @@ const reducer = (state, action) => {
|
||||
collection.items.push({
|
||||
uid: nanoid(),
|
||||
name: action.folderName,
|
||||
type: 'folder',
|
||||
items: [],
|
||||
// todo: this will be autoassigned
|
||||
depth: 1
|
||||
|
||||
Reference in New Issue
Block a user