summary refs log tree commit diff stats
path: root/src/components/select_placeholder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/select_placeholder.rs')
-rw-r--r--src/components/select_placeholder.rs22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/components/select_placeholder.rs b/src/components/select_placeholder.rs
index 2e0f783..7289793 100644
--- a/src/components/select_placeholder.rs
+++ b/src/components/select_placeholder.rs
@@ -41,16 +41,18 @@ pub fn SelectPlaceholder(
                 "
                 node_ref=node_ref
             >
-                {move || AsyncFetch! {
-                    @map_error_in_producer
-                    from_resource = options
-                    producer = |options| {
-                        options
-                            .into_iter()
-                            .map(|(label, value)| {
-                                view! { <option value=value>{label}</option> }
-                            })
-                            .collect_view()
+                {move || {
+                    AsyncFetch! {
+                        @map_error_in_producer
+                        from_resource = options,
+                        producer = |options| {
+                            options
+                                .into_iter()
+                                .map(|(label, value)| {
+                                    view! { <option value=value>{label}</option> }
+                                })
+                                .collect_view()
+                        }
                     }
                 }}
             </select>