[#7] fixed allday implementation to prevent errors with openpaas

This commit is contained in:
Camille Moussu
2025-08-27 14:55:14 +02:00
parent b1c3331518
commit 6669eeb456
12 changed files with 210 additions and 74 deletions
+2 -2
View File
@@ -44,11 +44,11 @@ export function getLocation() {
return window.location.href;
}
export function isValidUrl(string: string) {
export function isValidUrl(string?: string) {
let url;
try {
url = new URL(string);
url = new URL(string ?? "");
} catch (_) {
return false;
}