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 {
198198 * @param {Object } doc - The updated document.
199199 */
200200 handleRemoveSuccess ( ) {
201+ this . setState ( { deleteFinished : true } ) ;
201202 Actions . documentRemoved ( this . doc . _id ) ;
202203 }
203204
@@ -341,7 +342,7 @@ class Document extends React.Component {
341342 if ( this . state . editing ) {
342343 style = style . concat ( ' editing' ) ;
343344 }
344- if ( this . state . deleting ) {
345+ if ( this . state . deleting && ! this . state . deleteFinished ) {
345346 style = style . concat ( ' deleting' ) ;
346347 }
347348 return style ;
Original file line number Diff line number Diff line change @@ -171,9 +171,9 @@ class EditableElement extends React.Component {
171171 var components = _ . map ( this . element . elements , ( element ) => {
172172 return ( < EditableElement key = { element . uuid } element = { element } /> ) ;
173173 } ) ;
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} />);
177177 return components ;
178178 }
179179
You can’t perform that action at this time.
0 commit comments