Fix blank avatars, duplicate recent media, static message details
This commit is contained in:
parent
5c1776e00e
commit
1e3de45af6
3 changed files with 39 additions and 23 deletions
|
@ -39,11 +39,11 @@
|
|||
|
||||
this.hasRendered = false;
|
||||
},
|
||||
update(props, cb) {
|
||||
const updatedProps = this.augmentProps(props);
|
||||
update(propsOrJSX, cb) {
|
||||
const reactElement = this.JSX
|
||||
? this.JSX
|
||||
: React.createElement(this.Component, updatedProps);
|
||||
? propsOrJSX || this.JSX
|
||||
: React.createElement(this.Component, this.augmentProps(propsOrJSX));
|
||||
|
||||
ReactDOM.render(reactElement, this.el, () => {
|
||||
if (cb) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue