mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 16:56:23 +00:00
fix small crash bug
This commit is contained in:
parent
5240085285
commit
5b647c307d
1 changed files with 3 additions and 0 deletions
|
@ -232,6 +232,9 @@ export default definePlugin({
|
|||
dismissible: true
|
||||
});
|
||||
|
||||
if (msg == null)
|
||||
return [null];
|
||||
|
||||
msg.props.children[0].props.children.props.onClick = () => onDelete(e);
|
||||
msg.props.children[1].props.children[1].props.message.customRenderedContent = {
|
||||
content: highlightKeywords(e.content, regexes)
|
||||
|
|
Loading…
Reference in a new issue