- {#each $values as value}
-
- {value}
-
-
- {:else}
-
- Nothing selected
-
- {/each}
+ {#if $values !== undefined}
+ {#each $values as value}
+
+ {value}
+
+
+ {:else}
+
+ Nothing selected
+
+ {/each}
+ {/if}
{:catch error}
Failure obtaining the options to display
diff --git a/src/views/components/MultiSelectModel.ts b/src/views/components/MultiSelectModel.ts
index bdb72b38..b0288475 100644
--- a/src/views/components/MultiSelectModel.ts
+++ b/src/views/components/MultiSelectModel.ts
@@ -81,7 +81,7 @@ export async function MultiSelectModel(
export function MultiSelectTags(
fieldInput: inputTag,
app: App,
- values: Writable