fixing refernece
This commit is contained in:
parent
553ddccbf2
commit
bd410c0b49
@ -16,7 +16,7 @@ import LocationContainer from "./_components/LocationContainer";
|
|||||||
import AnnouncementsContainer from "./_components/AnnouncementsContainer";
|
import AnnouncementsContainer from "./_components/AnnouncementsContainer";
|
||||||
import DiscussionContainer from "./_components/DiscussionContainer";
|
import DiscussionContainer from "./_components/DiscussionContainer";
|
||||||
import AttendeesContainer from "./_components/AttendeesContainer";
|
import AttendeesContainer from "./_components/AttendeesContainer";
|
||||||
import { add, get } from "@/lib/server-actions/events/cache";
|
import { add } from "@/lib/server-actions/events/cache";
|
||||||
import { BANNER } from "@/constants";
|
import { BANNER } from "@/constants";
|
||||||
|
|
||||||
export default function EventPage({
|
export default function EventPage({
|
||||||
@ -31,6 +31,7 @@ export default function EventPage({
|
|||||||
throw new Error("Invalid list");
|
throw new Error("Invalid list");
|
||||||
}
|
}
|
||||||
const { identifier, kind, pubkey } = data;
|
const { identifier, kind, pubkey } = data;
|
||||||
|
|
||||||
const { events } = useEvents({
|
const { events } = useEvents({
|
||||||
filter: {
|
filter: {
|
||||||
authors: [pubkey],
|
authors: [pubkey],
|
||||||
@ -66,7 +67,7 @@ export default function EventPage({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
const { tags } = event;
|
const { tags } = event;
|
||||||
const eventReference = event.encode();
|
const eventReference = event.tagId();
|
||||||
|
|
||||||
const location = getTagAllValues("location", tags)[0]
|
const location = getTagAllValues("location", tags)[0]
|
||||||
? getTagAllValues("location", tags)
|
? getTagAllValues("location", tags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user