Wocart

@wocart/theme v4.1.0


@wocart/theme / index / removeInstance

Function: removeInstance()

removeInstance(theme, page, id): DocumentEdit

Remove an instance and everything inside it. Refused for a fixed block and for the last required instance of its type in its list.

Parameters

theme

ThemeDefinition

page

PageData

id

string

Returns

DocumentEdit