Refactor store component filters

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-11-16 16:27:41 -03:00
commit fa68c4e678
2 changed files with 2 additions and 2 deletions

View file

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

View file

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