GitHub

daffProductCompositeEnsureItems

function

import { daffProductCompositeEnsureItems } from '@daffodil/product-composite/state'

Maps a list of products, ensuring that the composite products have a list of items. If the incoming items is empty or nully, the items from state are intentionally used instead.

Parameters

Parameterstate: DaffProductReducersState
Description
Parameterproducts: T[]
Description