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);
|
||||
getStoreComponents({
|
||||
sort: "-count(liked_by)",
|
||||
liked: true,
|
||||
filterByUser: true,
|
||||
})
|
||||
.then((data) => {
|
||||
if (data?.authorized === false) {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ export default function FromStore(): JSX.Element {
|
|||
const handleGetComponents = () => {
|
||||
setLoading(true);
|
||||
getStoreComponents({
|
||||
liked: true,
|
||||
sort: "name",
|
||||
filterByUser: true,
|
||||
})
|
||||
.then((res) => {
|
||||
setLoading(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue