Skip to content

Commit b11e4a0

Browse files
committed
Go back to handling both null and undefined
1 parent 85778ac commit b11e4a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/components/Package/TrendsChart.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const props = withDefaults(
3939
* Used when `weeklyDownloads` is not provided.
4040
*/
4141
packageNames?: string[]
42-
repoRef?: RepoRef
42+
repoRef?: RepoRef | null | undefined
4343
createdIso?: string | null
4444
4545
/** When true, shows facet selector (e.g. Downloads / Likes). */
@@ -637,7 +637,7 @@ const DEFAULT_METRIC_ID: MetricId = 'downloads'
637637
638638
type MetricContext = {
639639
packageName: string
640-
repoRef: RepoRef | undefined
640+
repoRef?: RepoRef | undefined | null
641641
}
642642
643643
type MetricDef = {

app/components/Package/WeeklyDownloadStats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { RepoRef } from '#shared/utils/git-providers'
88
const props = defineProps<{
99
packageName: string
1010
createdIso: string | null
11-
repoRef?: RepoRef
11+
repoRef?: RepoRef | null | undefined
1212
}>()
1313
1414
const router = useRouter()

0 commit comments

Comments
 (0)