I have a interface.
export interface DefaultFormList { defaultFormItems?: DefaultFormItems[]; }
and
export interface DefaultFormItems { id: string; name: string; formXml: string, isDefaultFormEnable: boolean;}
I want to update the formXml based on particular id, rest don't need to change.
Below is the code snippet where i try to update the formXml based on formId.
How I can proceed further, below lines are only for reference.
const updatedDefautItems: DefaultFormItems[] = { ...this.state.defaultFormList.defaultFormItems, formXml: updatedFormXmlString };