mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 21:09:00 -05:00
🐛 Fix possible issue with advanced compilation.
This commit is contained in:
parent
d9aa94025a
commit
b816e0ed32
1 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ export function createDecorator(type, component) {
|
||||||
};
|
};
|
||||||
|
|
||||||
return new CompositeDecorator([
|
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);
|
}).concat(Map([[endKey, blockMap.get(endKey)]])).map(operation);
|
||||||
|
|
||||||
return contentState.merge({
|
return contentState.merge({
|
||||||
blockMap: blockMap.merge(newBlocks),
|
"blockMap": blockMap.merge(newBlocks),
|
||||||
selectionBefore: selectionState,
|
"selectionBefore": selectionState,
|
||||||
selectionAfter: selectionState
|
"selectionAfter": selectionState
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -205,6 +205,6 @@ export function removeInlineStylePrefix(contentState, selectionState, stylePrefi
|
||||||
sliceStart++;
|
sliceStart++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return block.set('characterList', chars);
|
return block.set("characterList", chars);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue