components/buffer: fix INVITE link

It was throwing a TypeError.
This commit is contained in:
Simon Ser 2022-01-10 10:32:37 +01:00
parent 5d6de11a4c
commit a0f8f1f52f

View file

@ -85,12 +85,8 @@ class LogLine extends Component {
`; `;
} }
function createChannel(channel) { function createChannel(channel) {
function onClick(event) {
event.preventDefault();
onChannelClick(channel);
}
return html` return html`
<a href=${getChannelURL(channel)} onClick=${onClick}> <a href=${getChannelURL(channel)} onClick=${onChannelClick}>
${channel} ${channel}
</a> </a>
`; `;