mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Merge pull request #651 from foxytocin/enhancement
Enhancement of issue #649: also checking agains NULL in urlFilter
This commit is contained in:
commit
a06901336c
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { removeTrailingSlash, removeWWW, getDomainName } from './url';
|
|||
|
||||
export const urlFilter = (data, { raw }) => {
|
||||
const isValidUrl = url => {
|
||||
return url !== '' && !url.startsWith('#');
|
||||
return url !== '' && url !== null && !url.startsWith('#');
|
||||
};
|
||||
|
||||
if (raw) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue