reflectCollectionsToSearchCategories
Reflects changes from a site model's collections to the site.data.values.searchCategories
legacy property. This is a needed stop-gap since old search page will coexist for a time with
the new workspaces UI and the old search page (among others) still rely on the searchCategories
construct.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
model Required | IModel |
a site item model |
Returns
a model with the catalog collections and search categories in sync
Function defined in common/src/sites/_internal/reflectCollectionsToSearchCategories.ts:16