mirror of
https://github.com/plankanban/planka.git
synced 2025-12-22 09:15:37 +03:00
chore: Update dependencies
This commit is contained in:
@@ -2,10 +2,13 @@ import { matchPath } from 'react-router-dom';
|
||||
|
||||
export default (pathname, paths) => {
|
||||
for (let i = 0; i < paths.length; i += 1) {
|
||||
const match = matchPath(pathname, {
|
||||
path: paths[i],
|
||||
exact: true,
|
||||
});
|
||||
const match = matchPath(
|
||||
{
|
||||
path: paths[i],
|
||||
end: true,
|
||||
},
|
||||
pathname,
|
||||
);
|
||||
|
||||
if (match) {
|
||||
return match;
|
||||
|
||||
Reference in New Issue
Block a user