Refactor store component filters
This commit is contained in:
parent
d460b05a6c
commit
fa68c4e678
2 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ export function StoreProvider({ children }) {
|
||||||
setLoadingSaved(true);
|
setLoadingSaved(true);
|
||||||
getStoreComponents({
|
getStoreComponents({
|
||||||
sort: "-count(liked_by)",
|
sort: "-count(liked_by)",
|
||||||
liked: true,
|
filterByUser: true,
|
||||||
})
|
})
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
if (data?.authorized === false) {
|
if (data?.authorized === false) {
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ export default function FromStore(): JSX.Element {
|
||||||
const handleGetComponents = () => {
|
const handleGetComponents = () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
getStoreComponents({
|
getStoreComponents({
|
||||||
liked: true,
|
|
||||||
sort: "name",
|
sort: "name",
|
||||||
|
filterByUser: true,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue