mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
fix: ignore obsolete selection of resize handlers when deleting after a resize (#27767)
This commit is contained in:
parent
72680f2fa0
commit
580cfccad8
1 changed files with 5 additions and 1 deletions
|
@ -27,6 +27,7 @@ const matrix = require('./matrix');
|
|||
const matrix2d = require('./matrix2d');
|
||||
|
||||
const {
|
||||
arrayToMap,
|
||||
disjunctiveUnion,
|
||||
identity,
|
||||
flatten,
|
||||
|
@ -207,7 +208,10 @@ const contentShape = allShapes => shape =>
|
|||
? contentShape(allShapes)(allShapes.find(s => s.id === shape.parent))
|
||||
: shape;
|
||||
|
||||
const contentShapes = (allShapes, shapes) => shapes.map(contentShape(allShapes));
|
||||
const contentShapes = (allShapes, shapes) => {
|
||||
const idMap = arrayToMap(allShapes.map(shape => shape.id));
|
||||
return shapes.filter(shape => idMap[shape.id]).map(contentShape(allShapes));
|
||||
};
|
||||
|
||||
const selectionState = select(
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue