File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/VersionEntry Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,20 @@ export default class VersionEntry extends React.PureComponent {
2626 }
2727 }
2828
29- handleRemove = ( ) => this . props . onRemove ( this . props . dependency ) ;
30- handleRefresh = ( ) => this . props . onRefresh ( this . props . dependency ) ;
29+ handleRemove = e => {
30+ if ( e ) {
31+ e . preventDefault ( ) ;
32+ e . stopPropagation ( ) ;
33+ }
34+ this . props . onRemove ( this . props . dependency ) ;
35+ } ;
36+ handleRefresh = e => {
37+ if ( e ) {
38+ e . preventDefault ( ) ;
39+ e . stopPropagation ( ) ;
40+ }
41+ this . props . onRefresh ( this . props . dependency ) ;
42+ } ;
3143 onMouseEnter = ( ) => this . setState ( { hovering : true } ) ;
3244 onMouseLeave = ( ) => this . setState ( { hovering : false } ) ;
3345
You can’t perform that action at this time.
0 commit comments