mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
New: Various UI Package Updates
This commit is contained in:
parent
9611df7e9e
commit
b8511f039a
13 changed files with 966 additions and 906 deletions
|
@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
|
|||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import queryString from 'query-string';
|
||||
import parseUrl from 'Utilities/String/parseUrl';
|
||||
import { lookupArtist, clearAddArtist } from 'Store/Actions/addArtistActions';
|
||||
import { fetchRootFolders } from 'Store/Actions/rootFolderActions';
|
||||
import AddNewArtist from './AddNewArtist';
|
||||
|
@ -12,10 +12,10 @@ function createMapStateToProps() {
|
|||
(state) => state.addArtist,
|
||||
(state) => state.routing.location,
|
||||
(addArtist, location) => {
|
||||
const query = queryString.parse(location.search);
|
||||
const { params } = parseUrl(location.search);
|
||||
|
||||
return {
|
||||
term: query.term,
|
||||
term: params.term,
|
||||
...addArtist
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue