0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix possible issue with advanced compilation.

This commit is contained in:
Andrey Antukh 2021-03-16 15:47:28 +01:00
parent d9aa94025a
commit b816e0ed32

View file

@ -42,7 +42,7 @@ export function createDecorator(type, component) {
};
return new CompositeDecorator([
{strategy, component}
{"strategy": strategy, "component": component}
]);
}
@ -75,9 +75,9 @@ function modifySelectedBlocks(contentState, selectionState, operation) {
}).concat(Map([[endKey, blockMap.get(endKey)]])).map(operation);
return contentState.merge({
blockMap: blockMap.merge(newBlocks),
selectionBefore: selectionState,
selectionAfter: selectionState
"blockMap": blockMap.merge(newBlocks),
"selectionBefore": selectionState,
"selectionAfter": selectionState
});
}
@ -205,6 +205,6 @@ export function removeInlineStylePrefix(contentState, selectionState, stylePrefi
sliceStart++;
}
return block.set('characterList', chars);
return block.set("characterList", chars);
});
}