Fix a couple of more errors due to API changes
This commit is contained in:
parent
901cbf495d
commit
a27eefd893
2 changed files with 3 additions and 2 deletions
|
@ -735,7 +735,7 @@ export default class MessageComposerInput extends React.Component {
|
|||
const pt = contentState.getBlocksAsArray().map((block) => {
|
||||
let blockText = block.getText();
|
||||
let offset = 0;
|
||||
this.findLinkEntities(block, (start, end) => {
|
||||
this.findLinkEntities(contentState, block, (start, end) => {
|
||||
const entity = contentState.getEntity(block.getEntityAt(start));
|
||||
if (entity.getType() !== 'LINK') {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue