Skip to content

Commit 577feeb

Browse files
author
Zoran Liu
committed
update
1 parent e371eac commit 577feeb

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

libs/core/src/lib/utils/angular-react/metadata.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,14 @@ const KEY = 'angularReact';
55

66
export const setAngularReactMetadata = (
77
componentDef: {
8-
data: {
8+
readonly data: {
99
[kind: string]: any;
1010
};
1111
},
1212
metadata: AngularReactMetadata
1313
): void => {
1414
if (componentDef.data) {
1515
componentDef.data[KEY] = metadata;
16-
} else {
17-
componentDef.data = {
18-
[KEY]: metadata
19-
}
2016
}
2117
};
2218

0 commit comments

Comments
 (0)