When attempting to update the system
value in the object telecom
, I encountered an error message at this stage:
Cannot assign to read only property 'system' of object '[object Object]'
this.organization.telecoms.forEach((telecom: Telecom) =>
telecom.system = 'test'
);
console.log(this.organization);
export class Organization {
public effectiveDate?: EffectiveDate;
public identifiers?: IdentifierOrg[];
public kilometerZones?: KilometerZone[];
public telecoms?: Telecom[];
}
export class Telecom {
public system?: string;
public value?: string;
}