Skip to content

Commit

Permalink
fix(dashboard): null url protection
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Jan 8, 2024
1 parent e53df32 commit 604ad70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/dashboard/+page.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getScripterDashboard } from "$lib/backend/data"
import type { Prices, ProductEx, Profile, Script, ScriptSimple } from "$lib/types/collection"
import type { Prices, ProductEx, Profile, Script } from "$lib/types/collection"
import { error } from "@sveltejs/kit"

export const load = async ({ parent, data, depends, url }) => {
Expand Down Expand Up @@ -139,7 +139,7 @@ export const load = async ({ parent, data, depends, url }) => {
id: script.id,
name: script.title,
author: script.protected.username,
url: url.protocol + "//" + url.host + "/" + script.url,
url: url.protocol + "//" + url.host + "/" + script.url ?? "",
active: false
}
})
Expand Down

0 comments on commit 604ad70

Please sign in to comment.