Fix web app views when using new backend
This commit is contained in:
1 parent
51fa4c0540
commit
93d660e978
11 files changed
+45
-4
No files matched your search
@@ -3,6 +3,7 @@
|
||||
|
||||
export let title: string | undefined = undefined;
|
||||
export let videoCount: number | undefined = undefined;
|
||||
export let videoCountText: string | undefined = undefined;
|
||||
export let playlistThumbnail: string | undefined = undefined;
|
||||
export let videos: any[] | undefined = undefined;
|
||||
|
||||
@@ -37,6 +38,9 @@
|
||||
}
|
||||
|
||||
function getVideoCountText() {
|
||||
if (videoCountText) {
|
||||
return videoCountText;
|
||||
}
|
||||
if (isNaN(videoCount) || videoCount < 0) {
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user