Skip to content

Commit

Permalink
Merge pull request #11076 from captain-Akshay/master
Browse files Browse the repository at this point in the history
missing permission page
  • Loading branch information
aabidsofi19 committed May 31, 2024
2 parents bd4fbb9 + 830b1a1 commit bbe8354
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/components/connections/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ import {
useSaveEnvironmentMutation,
} from '../../rtk-query/environments';
import ErrorBoundary from '../ErrorBoundary';
import { store } from '../../store';
import { Provider } from 'react-redux';
import CAN from '@/utils/can';
import { keys } from '@/utils/permission_constants';
import DefaultError from '../General/error-404/index';
Expand All @@ -88,6 +86,7 @@ import { useGetSchemaQuery } from '@/rtk-query/schema';
import { CustomTextTooltip } from '../MesheryMeshInterface/PatternService/CustomTextTooltip';
import InfoOutlinedIcon from '@/assets/icons/InfoOutlined';
import { DeleteIcon } from '@layer5/sistent';
import { withRouter } from 'next/router';

const ACTION_TYPES = {
FETCH_CONNECTIONS: {
Expand Down Expand Up @@ -1399,15 +1398,16 @@ const ConnectionManagementPageWithErrorBoundary = (props) => {
FallbackComponent={() => null}
onError={(e) => console.error('Error in Connection Management', e)}
>
<Provider store={store}>
<ConnectionManagementPage {...props} />
</Provider>
<ConnectionManagementPage {...props} />
</ErrorBoundary>
</NoSsr>
);
};

// @ts-ignore
export default withStyles(styles)(
connect(mapStateToProps, mapDispatchToProps)(ConnectionManagementPageWithErrorBoundary),
connect(
mapStateToProps,
mapDispatchToProps,
)(withRouter(ConnectionManagementPageWithErrorBoundary)),
);

0 comments on commit bbe8354

Please sign in to comment.