Fix context menu console error
This commit is contained in:
parent
04fdb7a704
commit
f2c461d16e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue