mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 23:30:05 +02:00
feat(cp-frontend): remove leading '/' from services url
This commit is contained in:
parent
20052a4a13
commit
15d689b0c2
@ -128,7 +128,7 @@ class ServiceList extends Component {
|
||||
|
||||
const mapStateToProps = (state, ownProps) => ({
|
||||
servicesQuickActions: state.ui.services.quickActions,
|
||||
url: ownProps.match.url
|
||||
url: ownProps.match.url.replace(/\/$/, '')
|
||||
});
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
|
@ -102,7 +102,7 @@ const ServicesTopology = ({
|
||||
|
||||
const mapStateToProps = (state, ownProps) => ({
|
||||
servicesQuickActions: state.ui.services.quickActions,
|
||||
url: ownProps.match.url,
|
||||
url: ownProps.match.url.replace(/\/$/, ''),
|
||||
push: ownProps.history.push
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user