File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/internal-packages/crud/lib/component Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ class Document extends React.Component {
198
198
* @param {Object } doc - The updated document.
199
199
*/
200
200
handleRemoveSuccess ( ) {
201
+ this . setState ( { deleteFinished : true } ) ;
201
202
Actions . documentRemoved ( this . doc . _id ) ;
202
203
}
203
204
@@ -341,7 +342,7 @@ class Document extends React.Component {
341
342
if ( this . state . editing ) {
342
343
style = style . concat ( ' editing' ) ;
343
344
}
344
- if ( this . state . deleting ) {
345
+ if ( this . state . deleting && ! this . state . deleteFinished ) {
345
346
style = style . concat ( ' deleting' ) ;
346
347
}
347
348
return style ;
Original file line number Diff line number Diff line change @@ -171,9 +171,9 @@ class EditableElement extends React.Component {
171
171
var components = _ . map ( this . element . elements , ( element ) => {
172
172
return ( < EditableElement key = { element . uuid } element = { element } /> ) ;
173
173
} ) ;
174
- var lastComponent = components [ components . length - 1 ] ;
175
- var lastElement = lastComponent ? lastComponent . props . element : null ;
176
- components . push ( < Hotspot key = 'hotspot' doc = { this . element } element = { lastElement } /> ) ;
174
+ // var lastComponent = components[components.length - 1];
175
+ // var lastElement = lastComponent ? lastComponent.props.element : null;
176
+ // components.push(<Hotspot key='hotspot' doc={this.element} element={lastElement} />);
177
177
return components ;
178
178
}
179
179
You can’t perform that action at this time.
0 commit comments