From 65b483177460973b1fba63129b0d42f33e8947ad Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 7 Nov 2018 12:44:23 +0100 Subject: [PATCH] Fix lint --- packages/editor/src/components/rich-text/index.native.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/editor/src/components/rich-text/index.native.js b/packages/editor/src/components/rich-text/index.native.js index 0dd4fe9c5db71..1c753b9c34d7a 100644 --- a/packages/editor/src/components/rich-text/index.native.js +++ b/packages/editor/src/components/rich-text/index.native.js @@ -269,18 +269,18 @@ export class RichText extends Component { } // The check below allows us to avoid updating the content right after an `onChange` call. // The first time the component is drawn `lastContent` and `lastEventCount ` are both undefined - if ( this.lastEventCount && + if ( this.lastEventCount && nextProps.value && this.lastContent && - nextProps.value === this.lastContent) { + nextProps.value === this.lastContent ) { return false; } - // If the component is changed React side (merging/splitting/custom text actions) we need to make sure + // If the component is changed React side (merging/splitting/custom text actions) we need to make sure // the native is updated as well if ( nextProps.value && this.lastContent && - nextProps.value !== this.lastContent) { + nextProps.value !== this.lastContent ) { this.lastEventCount = undefined; // force a refresh on the native side }