Skip to content

Commit 3544c3b

Browse files
update close
1 parent 4b9ac1e commit 3544c3b

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

packages/compass-aggregations/src/components/confirm-update-view-model/confirm-update-view-modal.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import React from 'react';
22
import { FormModal } from '@mongodb-js/compass-components';
33
import 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';
56
import { connect } from 'react-redux';
67

78
type 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;
4747
export { ConfirmUpdateViewModal };

packages/compass-indexes/src/modules/search-indexes.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff 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-
678669
export const pollSearchIndexes = (): IndexesThunkAction<
679670
Promise<void>,
680671
FetchSearchIndexesActions

0 commit comments

Comments
 (0)