File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
compass-aggregations/src/components/confirm-update-view-model
compass-indexes/src/modules Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { FormModal } from '@mongodb-js/compass-components' ;
33import type { UpdateViewState } from '../../modules/update-view' ;
4- import { closeConfirmUpdateModal , updateView } from '../../modules/update-view' ;
4+ import { closeConfirmUpdateModal } from '../../modules/update-view' ;
5+ import { updateView } from '../../modules/update-view' ;
56import { connect } from 'react-redux' ;
67
78type ConfirmUpdateViewModalProps = {
89 updateView : ( ) => void ;
9- isOpen ? : boolean ;
10+ isOpen : boolean ;
1011 closeModal : ( ) => void ;
1112} ;
1213
@@ -37,11 +38,10 @@ const mapStateToProps = (state: UpdateViewState) => ({
3738 isOpen : state . isOpen ,
3839} ) ;
3940
40- // Connect actions for dispatching
41- const MappedConfirmUpdateViewModal = connect ( mapStateToProps , {
41+ const MappedCreateViewModal = connect ( mapStateToProps , {
4242 updateView,
4343 closeModal : closeConfirmUpdateModal ,
4444} ) ( ConfirmUpdateViewModal ) ;
4545
46- export default MappedConfirmUpdateViewModal ;
46+ export default MappedCreateViewModal ;
4747export { ConfirmUpdateViewModal } ;
Original file line number Diff line number Diff line change @@ -666,15 +666,6 @@ export const fetchSearchIndexes = (): IndexesThunkAction<
666666 } ;
667667} ;
668668
669- export const refreshSearchIndexes = ( ) : IndexesThunkAction <
670- Promise < void > ,
671- FetchSearchIndexesActions
672- > => {
673- return async ( dispatch ) => {
674- await dispatch ( fetchIndexes ( FetchReasons . REFRESH ) ) ;
675- } ;
676- } ;
677-
678669export const pollSearchIndexes = ( ) : IndexesThunkAction <
679670 Promise < void > ,
680671 FetchSearchIndexesActions
You can’t perform that action at this time.
0 commit comments