function resolveCategoryFilter
resolveCategoryFilter(
name?: string
): string | "missing" | undefined

Returns the id of the category of kind whose slug the name parameter of params, ?category= by default, gives, undefined without one, or "missing" when it names none, so that the list comes back empty rather than unfiltered. The users routes filter a profile's lists with it, and the search route its results.

Parameters

optional
name: string = category

Return Type

string | "missing" | undefined

Usage

import { resolveCategoryFilter } from "api/services/category-service.ts";