make code a bit cleaner

master
Tymon 1 year ago
parent e6892fac37
commit 72ca534e82

@ -60,7 +60,7 @@ pub fn GenerationUI(cx: Scope) -> impl IntoView {
}
});
let fill_selector_action = create_action(cx, move |_: &()| async move {
_ = create_resource(cx, || (), move |_| async move {
let res = Request::get("/api/ais").send().await;
match res {
@ -91,7 +91,6 @@ pub fn GenerationUI(cx: Scope) -> impl IntoView {
}
});
fill_selector_action.dispatch(());
view! { cx,
<main>