Fix context menu console error

This commit is contained in:
Maks-s 2019-04-19 22:13:43 +02:00
parent dd9902a2fd
commit 6955644f68
No known key found for this signature in database
GPG Key ID: 323D678DE035627B
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export class DiscordContextMenu {
}
static renderCm(component, args, retVal, res) {
if (!retVal.props || !res.props) return;
if (!retVal.props || !retVal.props.style || !res.props) return;
const { target } = component.props;
const { top, left } = retVal.props.style;
if (!target || !top || !left) return;