cleanup duplicate userSettings from libraryBrowser

This commit is contained in:
grafixeyehero 2023-07-14 21:32:34 +03:00
parent d8c25b4594
commit 1825b821af
15 changed files with 147 additions and 196 deletions

View file

@ -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) {