-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I get this error whenever I try to send a comment on a room of type, channel:
TypeError: Cannot add property 0, object is not extensible
at Array.push ()
at e. (qiscus-sdk-core.min.js:14)
at l (qiscus-sdk-core.min.js:12)
at Generator._invoke (qiscus-sdk-core.min.js:12)
at Generator.next (qiscus-sdk-core.min.js:12)
at n (qiscus-sdk-core.min.js:1)
at a (qiscus-sdk-core.min.js:1)
at ZoneDelegate.invoke (zone-evergreen.js:364)
at Zone.run (zone-evergreen.js:123)
at zone-evergreen.js:857
On tracing the error, I observed it comes from this line:
qiscus-sdk-web-core/src/index.js
Line 1339 in 6de2689
| if (self.selected) self.selected.comments.push(messageData) |
A suggestion to avoid this type error would be this: self.selected.comments = [...self.selected.comments, messageData];