1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00

Fix missing key warning, remove commented out code

This commit is contained in:
Henry Heino 2024-12-23 07:54:11 -08:00
parent 3384f21fce
commit 86b918b261

View File

@ -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}