Skip to content

Commit

Permalink
update the gql to limit to 25
Browse files Browse the repository at this point in the history
  • Loading branch information
thinknoack committed Jan 15, 2025
1 parent ac5229f commit 712eaa8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ export const UserDatasetsView: React.FC<UserDatasetsViewProps> = ({ user }) => {
const [publicFilter, setPublicFilter] = useState<string>("all")
const [sortOrder, setSortOrder] = useState<string>("date-updated")

const { data, loading, error } = useQuery(DATASETS_QUERY)
const { data, loading, error } = useQuery(DATASETS_QUERY, {
variables: { first: 25 }, // Pass first: 25 to limit results
})

if (loading) return <p>Loading datasets...</p>
if (error) return <p>Failed to fetch datasets: {error.message}</p>
Expand Down

0 comments on commit 712eaa8

Please sign in to comment.