-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updating channel with new information removes previous data properties #436
Comments
Agent comment from Stephen Hodgetts in Zendesk ticket #6161: |
Hey @veloware , We are aware of the issue that you mentioned. For channel.update, you will need to send all the properties manually everytime: channel.update({
isGroup: channel.data.isGroup
name: value,
}) |
This seems to still giving an error for properties on the user/member of the channel -
|
@vishalnarkhede you think we should exclude |
any thoughts on the above? The above error stops you from using the solution of spreading in the existing channel data as done in the unit tests. Not sure if this is because the test data may not have a proper representation of a member object, containing |
I have added a custom field on to a channel when creating the channel,
isGroup
-server side
I can see the
isGroup: true
in the newly created channel when queried on the front end.I then later wish to update the name for a group on the front end -
client side
however it seems that although
name
is updated, I lose theisGroup
property.I have also tried to spread the existing data -
however I get the following TS errors -
I have noticed this across all data properties, e.g. changing the
name
property by passing only thename
property, removes the likes ofimage
etc.Any help on how to update channel data without removing old channel data? I shouldnt need to pass all channel data properties into each
.update()
call.Thanks
gz#6161
The text was updated successfully, but these errors were encountered: