+
0}>
{#each parts as part, i}
{#if part["subs"]}
-
+
+
+
{:else}
{@html part["message"]}
diff --git a/src/UI/InputElement/InputHelper.svelte b/src/UI/InputElement/InputHelper.svelte
index 8a8f84466..3bbb4e904 100644
--- a/src/UI/InputElement/InputHelper.svelte
+++ b/src/UI/InputElement/InputHelper.svelte
@@ -23,9 +23,9 @@
export let type: ValidatorType
export let value: UIEventSource
- export let feature: Feature
+ export let feature: Feature = undefined
export let args: (string | number | boolean)[] = undefined
- export let state: SpecialVisualizationState
+ export let state: SpecialVisualizationState = undefined
{#if type === "translation"}
@@ -51,4 +51,6 @@
{:else if type === "wikidata"}
+{:else}
+
{/if}
diff --git a/src/Utils.ts b/src/Utils.ts
index 5db0113a8..99674d926 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -1272,7 +1272,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
public static sortedByLevenshteinDistance(
reference: string,
- ts: T[],
+ ts: ReadonlyArray,
getName: (t: T) => string
): T[] {
const withDistance: [T, number][] = ts.map((t) => [