getCategoryItems

Function

Fetch the categorySchema for all the categories, including the ones with 0 count, then recursively collet all the child categories on the deepest level. Parse into a format that can be consumed by the combobox field

TODO: render nested categories in combobox

  • getCategoryItems(orgId: string, hubRequestOptions: IHubRequestOptions) : Promise<IUiSchemaComboboxItem[]>

Parameters

Parameter Type Default Notes
orgId Required string
hubRequestOptions Required IHubRequestOptions

Returns

Promise<IUiSchemaComboboxItem[]>

Function defined in common/src/core/schemas/internal/getCategoryItems.ts:13