Home > @uniformdev/project-map > getNodeActiveCompositionEdition
getNodeActiveCompositionEdition() function
Warning: This API is now obsolete.
pre-release functionality subject to change
Finds the active edition for a given locale in a node's compositionData. Note: All editions, including the composition, are stored in the editions array when it is present.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
{ node, targetLocale, fallbackWhenLocaleNotMatched, } | { node: Pick<ProjectMapNode, 'compositionData'>; targetLocale: string | undefined; fallbackWhenLocaleNotMatched?: boolean; } |
Returns:
ProjectMapNode['compositionData'] | undefined