cleanup duplicate userSettings from libraryBrowser
This commit is contained in:
parent
d8c25b4594
commit
1825b821af
15 changed files with 147 additions and 196 deletions
|
@ -1,9 +1,8 @@
|
|||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
|
||||
function getQuery(params) {
|
||||
const key = getSavedQueryKey();
|
||||
const key = getSavedQueryKey(params);
|
||||
let pageData = data[key];
|
||||
|
||||
if (!pageData) {
|
||||
|
@ -23,8 +22,8 @@ function getQuery(params) {
|
|||
return pageData.query;
|
||||
}
|
||||
|
||||
function getSavedQueryKey() {
|
||||
return libraryBrowser.getSavedQueryKey('studios');
|
||||
function getSavedQueryKey(params) {
|
||||
return `${params.topParentId}-studios`;
|
||||
}
|
||||
|
||||
function getPromise(context, params) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue