From bab03b854ab11764e27627299330e522eb3a6e55 Mon Sep 17 00:00:00 2001 From: Ben Elferink Date: Sun, 9 Feb 2025 15:58:19 +0200 Subject: [PATCH] fix: build errors --- src/@types/destinations.ts | 2 +- src/containers/action-drawer/build-card.ts | 2 +- src/containers/destination-form/destination-form.stories.tsx | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/@types/destinations.ts b/src/@types/destinations.ts index 4c5ee31..02b2167 100644 --- a/src/@types/destinations.ts +++ b/src/@types/destinations.ts @@ -12,7 +12,7 @@ export interface DestinationDynamicField { name: DestinationYamlProperties['name'] componentType: DestinationYamlProperties['componentType'] title: DestinationYamlProperties['displayName'] - value?: DestinationYamlProperties['initialValue'] + value: DestinationYamlProperties['initialValue'] renderCondition?: DestinationYamlProperties['renderCondition'] // from "componentProperties" diff --git a/src/containers/action-drawer/build-card.ts b/src/containers/action-drawer/build-card.ts index 9d57208..fc5f59f 100644 --- a/src/containers/action-drawer/build-card.ts +++ b/src/containers/action-drawer/build-card.ts @@ -75,7 +75,7 @@ const buildCard = (action: Action) => { } if (samplingPercentage) { - arr.push({ title: 'Sampling Percentage', value: samplingPercentage }) + arr.push({ title: 'Sampling Percentage', value: String(samplingPercentage) }) } if (endpointsFilters) { diff --git a/src/containers/destination-form/destination-form.stories.tsx b/src/containers/destination-form/destination-form.stories.tsx index df6200f..02fb147 100644 --- a/src/containers/destination-form/destination-form.stories.tsx +++ b/src/containers/destination-form/destination-form.stories.tsx @@ -99,11 +99,13 @@ Default.args = { name: 'JAEGER_TLS_ENABLED', componentType: FIELD_TYPES.CHECKBOX, title: 'Enable TLS', + value: '', }, { name: 'JAEGER_CA_PEM', componentType: FIELD_TYPES.TEXTAREA, title: 'Certificate Authority', + value: '', }, ], setDynamicFields: () => {},