Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
crtr0 committed Dec 6, 2023
1 parent b60c181 commit adb5475
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/elements/view-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { marked } from 'marked'

export default function ViewEvent({ html, state = {} }) {
const { attrs, store } = state

let { events } = store
console.log(events)
let { id } = attrs
console.log(id)
let event = events.find(e => e.id === id)
console.log(event)
return html`
<h3>${event.title}</h3>
<p>${marked(event.description)}</p>
Expand Down

0 comments on commit adb5475

Please sign in to comment.