fix: templates pagiation

This commit is contained in:
Arman
2025-03-12 17:36:52 +01:00
parent f0d64adf78
commit efca94bd03
@@ -1,12 +1,12 @@
import { CARD_LIMIT, Dependencies } from '$lib/constants';
import { getPage, getSearch, getView, pageToOffset, View } from '$lib/helpers/load';
import { getLimit, getPage, getSearch, getView, pageToOffset, View } from '$lib/helpers/load';
import { sdk } from '$lib/stores/sdk';
import type { PageLoad } from './$types';
export const load: PageLoad = async ({ url, route, depends, parent }) => {
depends(Dependencies.FUNCTIONS);
const limit = CARD_LIMIT;
const limit = getLimit(url, route, CARD_LIMIT);
const page = getPage(url);
const search = getSearch(url);
const view = getView(url, route, View.Grid);