mirror of https://github.com/lidarr/Lidarr
parent
6372764f61
commit
abbb5e9bcb
|
@ -55,7 +55,7 @@ class RootFolders extends Component {
|
|||
>
|
||||
<div className={styles.rootFolders}>
|
||||
{
|
||||
items.sort(sortByName).map((item) => {
|
||||
items.map((item) => {
|
||||
const qualityProfile = qualityProfiles.find((profile) => profile.id === item.defaultQualityProfileId);
|
||||
const metadataProfile = metadataProfiles.find((profile) => profile.id === item.defaultMetadataProfileId);
|
||||
return (
|
||||
|
|
|
@ -3,11 +3,13 @@ import React, { Component } from 'react';
|
|||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import { deleteRootFolder, fetchRootFolders } from 'Store/Actions/settingsActions';
|
||||
import createSortedSectionSelector from 'Store/Selectors/createSortedSectionSelector';
|
||||
import sortByName from 'Utilities/Array/sortByName';
|
||||
import RootFolders from './RootFolders';
|
||||
|
||||
function createMapStateToProps() {
|
||||
return createSelector(
|
||||
(state) => state.settings.rootFolders,
|
||||
createSortedSectionSelector('settings.rootFolders', sortByName),
|
||||
(state) => state.settings.qualityProfiles,
|
||||
(state) => state.settings.metadataProfiles,
|
||||
(rootFolders, quality, metadata) => {
|
||||
|
|
Loading…
Reference in New Issue