fix(ui): remove accidentally duplicated code block in torrent table
This commit is contained in:
@@ -491,15 +491,4 @@ pub fn TorrentTable() -> impl IntoView {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<Show when=move || menu_visible.get() fallback=|| ()>
|
|
||||||
<crate::components::context_menu::ContextMenu
|
|
||||||
visible=true
|
|
||||||
position=menu_position.get()
|
|
||||||
torrent_hash=selected_hash.get().unwrap_or_default() // Use selected_hash as source of truth
|
|
||||||
on_close=Callback::from(move |_| set_menu_visible.set(false))
|
|
||||||
on_action=Callback::from(on_action)
|
|
||||||
/>
|
|
||||||
</Show>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user