Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
Just a tiny fix to the useParentField() hook. In case of level>0 it was calling function getParentField() with a wrong level.
Closes #4163
How Has This Been Tested?
Manually with an in-code content model product and a field decorator ProductRenderDecorator. See #4163 for more details. This test setup provides the expected console log after the fix:
current field is metaData.generalMetaData.specificMetaData.isoCode
1st level parent: specificMetaData
2nd level parent: generalMetaData
3rd level parent: metaData
Refs: #4163
Changes
Just a tiny fix to the
useParentField()
hook. In case oflevel>0
it was calling functiongetParentField()
with a wrong level. Closes #4163How Has This Been Tested?
Manually with an in-code content model
product
and a field decoratorProductRenderDecorator
. See #4163 for more details. This test setup provides the expected console log after the fix:Documentation
not needed