Skip to content

Commit 1e5481e

Browse files
committed
refactor: remove log statement
1 parent 9085525 commit 1e5481e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/actions/ui.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ export function matchContentToUrl (location) {
4040
// This is a bit of a hack to make up for the fact that react-router does
4141
// not always provide the match params as expected.
4242
// https://github.com/ReactTraining/react-router/issues/5870#issuecomment-394194338
43-
let root = location.pathname.split('/')[1]
43+
const root = location.pathname.split('/')[1]
4444
const match = matchPath(location.pathname, {
4545
path: `/${root}/:id`,
4646
exact: true,
4747
strict: false
4848
})
4949
const id = match && match.params && match.params.id
50-
console.log(location, id)
5150
switch (root) {
5251
case 'route':
5352
if (id) {

0 commit comments

Comments
 (0)