diff --git a/src/lib/charts/base.svelte b/src/lib/charts/base.svelte index 09f5b5ee2..d8eb25e3a 100644 --- a/src/lib/charts/base.svelte +++ b/src/lib/charts/base.svelte @@ -13,7 +13,7 @@ registerTheme('light', { ...base, ...light }); registerTheme('dark', { ...base, ...dark }); - export let options: EChartsOption; + export let options: EChartsOption | null; export let series: (BarSeriesOption | LineSeriesOption)[]; let chart: ECharts; diff --git a/src/lib/components/eventModal.svelte b/src/lib/components/eventModal.svelte index 544d409fa..72eb12ba2 100644 --- a/src/lib/components/eventModal.svelte +++ b/src/lib/components/eventModal.svelte @@ -15,10 +15,11 @@ } from '$lib/constants'; import { tooltip } from '$lib/actions/tooltip'; import { objectKeys } from '$lib/helpers/object'; + import type { Nullable } from '$lib/helpers/type'; // Props export let show = false; - export let initialValue = ''; + export let initialValue: Nullable = ''; // Constants const serviceNames = services.map((s) => s.name); diff --git a/src/lib/components/permissions/row.svelte b/src/lib/components/permissions/row.svelte index e69f66616..3cef701f6 100644 --- a/src/lib/components/permissions/row.svelte +++ b/src/lib/components/permissions/row.svelte @@ -1,5 +1,6 @@ {#if attributes.length} @@ -39,7 +50,7 @@ {#each attributes as attribute} {@const label = attribute.required ? `${attribute.key}*` : attribute.key} {#if attribute.array} - {#if formValues[attribute.key].length === 0} + {#if formValues[attribute.key]?.length === 0}
{label} @@ -55,19 +66,21 @@
{/if} - {#if formValues[attribute.key].length !== 0} + {#if formValues[attribute.key]?.length !== 0}