add null check

This commit is contained in:
Peter Clement 2024-02-13 15:33:39 +00:00
parent d508e8f01b
commit 10035f5e57
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
$redirect("../")
}
if ($admin.checklist?.branding) {
if ($admin?.checklist?.branding) {
let url = new URL("http://hello.petertest.com:10001/auth/login")
let hostname = url.hostname
let parts = hostname.split(".")