mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +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 }) => {
|
export const urlFilter = (data, { raw }) => {
|
||||||
const isValidUrl = url => {
|
const isValidUrl = url => {
|
||||||
return url !== '' && !url.startsWith('#');
|
return url !== '' && url !== null && !url.startsWith('#');
|
||||||
};
|
};
|
||||||
|
|
||||||
if (raw) {
|
if (raw) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue