mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-13 10:30:05 -04:00
Update +page.server.js
This commit is contained in:
parent
c0817b638e
commit
37edcb7e45
1 changed files with 1 additions and 4 deletions
|
@ -37,11 +37,8 @@ export function load({ params }) {
|
||||||
const id = `${name}.${country}`.toLowerCase()
|
const id = `${name}.${country}`.toLowerCase()
|
||||||
|
|
||||||
let channel = data.channels[id]
|
let channel = data.channels[id]
|
||||||
if (!channel) {
|
|
||||||
throw error(404, 'Not Found')
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
channel: transformChannel(channel, data)
|
channel: channel ? transformChannel(channel, data) : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue