Skip to content

Commit b9b7ab9

Browse files
committed
isActive debug
1 parent d9af53c commit b9b7ab9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/utils/contentful.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ export function isActive(baseUrl, item, caller) {
6363
return false;
6464
}
6565

66+
// eslint-disable-next-line no-console
67+
console.log('isActive debug', {
68+
baseUrl, item, caller, to, location,
69+
});
70+
6671
// handles the special case when url === `/`
6772
if (caller === 'menuItem'
6873
&& to === baseUrl

0 commit comments

Comments
 (0)