mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 13:18:24 +00:00
msg_preview: fix possibly undefined error
This commit is contained in:
parent
4b07e05491
commit
96848c1c1b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ socket.on("msg:preview", function (data) {
|
|||
const netChan = store.getters.findChannel(data.chan);
|
||||
const message = netChan?.channel.messages.find((m) => m.id === data.id);
|
||||
|
||||
if (!message) {
|
||||
if (!message || !message.previews) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue