0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

🐛 Fix text alignment becoming undefined on pasting text from clipboard

Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
Andrew Zhurov 2022-07-31 10:33:10 +03:00 committed by Andrey Antukh
parent 424e9faa8e
commit 732755066e

View file

@ -378,10 +378,7 @@ export function insertText(state, text, attrs, inlineStyles) {
);
blockArray = blockArray.map((b) => {
if (b.getText() === "") {
return mergeBlockData(b, attrs)
}
return b;
return mergeBlockData(b, attrs);
});
const fragment = BlockMapBuilder.createFromArray(blockArray);