I have an object maintained in ngrx store like shown below -
{
.
.
callStatus: ClientStatus;
.
.
}
and ClientStatus is a further nested interface like -
interface ClientStatus {
status: boolean;
csrObject: csrStatus;
}
now in an API response I am getting updated values of csrStatus for a single user type which I need to update. but when I try to -
adapter.updateOne(
{
id: client.id,
changes: { callStatus.csrObject: action.response }
})
I am getting error as I am not allowed to access a sub-property of a given key while updating.
Does anybody know how can I approach this problem?