Skip to content

Commit e3de54c

Browse files
committed
docs(combo-box): handle error silently in "Filtering (async)" example
1 parent 6962332 commit e3de54c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/src/pages/framed/ComboBox/AsyncComboBox.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
3535
onMount(() => {
3636
// Fetch initial items.
37-
fetchItems("").then((data) => (items = data));
37+
fetchItems("")
38+
.then((data) => {
39+
items = data;
40+
})
41+
.catch(() => {});
3842
3943
return () => {
4044
clearTimeout(timeoutId);

0 commit comments

Comments
 (0)