Skip to content

Commit 73b1e94

Browse files
authored
Change to have localized custom label (#539)
1 parent 6b4adfd commit 73b1e94

File tree

1 file changed

+5
-0
lines changed
  • packages/react-sdk-components/src/components/infra/Reference

1 file changed

+5
-0
lines changed

packages/react-sdk-components/src/components/infra/Reference/Reference.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ export default function Reference(props: ReferenceProps) {
3838
pageReference: context && context.startsWith('@CLASS') ? '' : context
3939
});
4040

41+
if (referenceConfig.inheritedProps && referenceConfig.inheritedProps.length > 0) {
42+
const inheritedProps = pConnect.getInheritedProps();
43+
referenceConfig.inheritedProps = Object.keys(inheritedProps).map(prop => ({ prop, value: inheritedProps[prop] }));
44+
}
45+
4146
viewComponent.props.getPConnect().setInheritedConfig({
4247
...referenceConfig,
4348
readOnly,

0 commit comments

Comments
 (0)