fix: state error
This commit is contained in:
parent
d42b139711
commit
40d477a35b
@ -11,7 +11,7 @@ import { Button } from "../element/button";
|
|||||||
export function TorrentPage() {
|
export function TorrentPage() {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const { id } = useParams();
|
const { id } = useParams();
|
||||||
const evState = "kind" in location.state ? (location.state as TaggedNostrEvent) : undefined;
|
const evState = location.state && "kind" in location.state ? (location.state as TaggedNostrEvent) : undefined;
|
||||||
|
|
||||||
const rb = new RequestBuilder("torrent:event");
|
const rb = new RequestBuilder("torrent:event");
|
||||||
rb.withFilter()
|
rb.withFilter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user