Skip to content

Commit

Permalink
v1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zeplin-dev committed Dec 22, 2021
1 parent 6121341 commit 8e6baba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/connected-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import {

export const transformConnectedComponentToJSON = function (value: ConnectedComponent): any {
return {
compontents: value.compontents && value.compontents.map(transformEntityReferenceToJSON),
components: value.components.map(transformEntityReferenceToJSON),
file_path: value.filePath,
name: value.name,
description: value.description,
Expand All @@ -48,7 +48,7 @@ export const transformConnectedComponentToJSON = function (value: ConnectedCompo

export const transformJSONToConnectedComponent = function (value: any): ConnectedComponent {
return {
compontents: value.compontents && value.compontents.map(transformJSONToEntityReference),
components: value.components.map(transformJSONToEntityReference),
filePath: value.file_path,
name: value.name,
description: value.description,
Expand All @@ -69,7 +69,7 @@ export interface ConnectedComponent {
* @type {Array<EntityReference>}
* @memberof ConnectedComponent
*/
compontents?: Array<EntityReference>;
components: Array<EntityReference>;
/**
* File path of the connected component from the source code
* @type {string}
Expand Down

0 comments on commit 8e6baba

Please sign in to comment.