Skip to content

Commit 8e6baba

Browse files
committed
v1.8.3
1 parent 6121341 commit 8e6baba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/connected-component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import {
3636

3737
export const transformConnectedComponentToJSON = function (value: ConnectedComponent): any {
3838
return {
39-
compontents: value.compontents && value.compontents.map(transformEntityReferenceToJSON),
39+
components: value.components.map(transformEntityReferenceToJSON),
4040
file_path: value.filePath,
4141
name: value.name,
4242
description: value.description,
@@ -48,7 +48,7 @@ export const transformConnectedComponentToJSON = function (value: ConnectedCompo
4848

4949
export const transformJSONToConnectedComponent = function (value: any): ConnectedComponent {
5050
return {
51-
compontents: value.compontents && value.compontents.map(transformJSONToEntityReference),
51+
components: value.components.map(transformJSONToEntityReference),
5252
filePath: value.file_path,
5353
name: value.name,
5454
description: value.description,
@@ -69,7 +69,7 @@ export interface ConnectedComponent {
6969
* @type {Array<EntityReference>}
7070
* @memberof ConnectedComponent
7171
*/
72-
compontents?: Array<EntityReference>;
72+
components: Array<EntityReference>;
7373
/**
7474
* File path of the connected component from the source code
7575
* @type {string}

0 commit comments

Comments
 (0)