mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fix missing key warning, remove commented out code
This commit is contained in:
parent
3384f21fce
commit
86b918b261
@ -191,7 +191,7 @@ const FolderItem: React.FC<FolderItemProps> = props => {
|
||||
|
||||
let iconWrapper = null;
|
||||
|
||||
const collapsed = props.collapsed;// props.collapsedFolderIds.indexOf(folder.id) >= 0;
|
||||
const collapsed = props.collapsed;
|
||||
const iconName = collapsed ? 'chevron-down' : 'chevron-up';
|
||||
const iconComp = <IonIcon name={iconName} style={styles_.folderToggleIcon} />;
|
||||
|
||||
@ -531,6 +531,7 @@ const SideMenuContentComponent = (props: Props) => {
|
||||
|
||||
const renderFolderItem = (folder: FolderEntity, hasChildren: boolean, depth: number) => {
|
||||
return <FolderItem
|
||||
key={`folder-item-${folder.id}`}
|
||||
themeId={props.themeId}
|
||||
hasChildren={hasChildren}
|
||||
depth={depth}
|
||||
|
Loading…
Reference in New Issue
Block a user