@st1myl/entrl-react
Advanced tools
Comparing version 1.3.290 to 1.3.291
@@ -21,3 +21,3 @@ import React, { Component } from "react"; | ||
state: IState; | ||
static getDerivedStateFromProps(nextProps: any, currentState: any): EditorState | { | ||
static getDerivedStateFromProps(nextProps: any): EditorState | { | ||
editorState: EditorState; | ||
@@ -24,0 +24,0 @@ }; |
@@ -70,4 +70,4 @@ "use strict"; | ||
} | ||
static getDerivedStateFromProps(nextProps, currentState) { | ||
if (currentState.editorState !== nextProps.editorState) { | ||
static getDerivedStateFromProps(nextProps) { | ||
if (nextProps.editorState) { | ||
return { | ||
@@ -74,0 +74,0 @@ editorState: draft_js_1.EditorState.createWithContent(draft_js_1.convertFromRaw(JSON.parse(nextProps.editorRaw))), |
{ | ||
"name": "@st1myl/entrl-react", | ||
"author": "St1myL", | ||
"version": "1.3.290", | ||
"version": "1.3.291", | ||
"repository": "st1myl/entrl-react", | ||
@@ -6,0 +6,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
594196