diff --git a/app/components/SourcesChart.vue b/app/components/SourcesChart.vue index 9c73b47da..e849b2674 100644 --- a/app/components/SourcesChart.vue +++ b/app/components/SourcesChart.vue @@ -2,12 +2,12 @@ import type { SourceRaw, Source } from '~~/shared/classes.ts'; const props = defineProps<{ - sources: (SourceRaw | Source)[] | null; + sources: (SourceRaw | Source)[] | undefined; label: string; }>(); const publishDates = computed(() => { - if (props.sources === null) { + if (props.sources === undefined) { return null; } const dates: Record = {}; diff --git a/app/components/Stats.vue b/app/components/Stats.vue index 8629d196c..d832bdffe 100644 --- a/app/components/Stats.vue +++ b/app/components/Stats.vue @@ -8,7 +8,7 @@ const heartbeatHost = runtimeConfig.public.heartbeatLink; const overall = ref(true); const activeStats = computed(() => { - if (stats.value === null) { + if (stats.value === undefined) { return undefined; } diff --git a/app/components/VersionCommitLink.vue b/app/components/VersionCommitLink.vue index db316a6b9..1516b693f 100644 --- a/app/components/VersionCommitLink.vue +++ b/app/components/VersionCommitLink.vue @@ -1,6 +1,6 @@