- {#if units}
+ {#if unit}
Units
-
{units}
+
{unit}
{/if}
{#if source !== 'none'}
Source
@@ -102,6 +102,7 @@
.parameter-info-values {
display: grid;
grid-template-columns: 1fr 1fr;
+ row-gap: 12px;
}
.parameter-info-label {
diff --git a/src/components/parameters/ParameterRecSeries.svelte b/src/components/parameters/ParameterRecSeries.svelte
index dbedb68495..e841e0d8f3 100644
--- a/src/components/parameters/ParameterRecSeries.svelte
+++ b/src/components/parameters/ParameterRecSeries.svelte
@@ -42,7 +42,7 @@
name: `[${i}]`,
order: i,
schema: schema.items,
- units: formParameter.units,
+ unit: formParameter.unit,
value: getArgument(value[i], schema.items).value,
valueSource: formParameter.valueSource,
};
diff --git a/src/components/parameters/ParameterRecStruct.svelte b/src/components/parameters/ParameterRecStruct.svelte
index bcc5ceedab..47f8cc06c2 100644
--- a/src/components/parameters/ParameterRecStruct.svelte
+++ b/src/components/parameters/ParameterRecStruct.svelte
@@ -38,7 +38,7 @@
name: key,
order: index,
schema: schema.items[key],
- units: formParameter.units,
+ unit: formParameter.unit,
value: value !== null ? value[key] : null,
valueSource: formParameter.valueSource,
};
diff --git a/src/components/parameters/ParameterUnits.svelte b/src/components/parameters/ParameterUnits.svelte
index 6d5d206903..43f36a0fef 100644
--- a/src/components/parameters/ParameterUnits.svelte
+++ b/src/components/parameters/ParameterUnits.svelte
@@ -1,11 +1,11 @@
-{#if units}
-
{units}
+{#if unit}
+
{unit}
{/if}