Fix context menu console error
This commit is contained in:
parent
dd9902a2fd
commit
6955644f68
|
@ -84,7 +84,7 @@ export class DiscordContextMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
static renderCm(component, args, retVal, res) {
|
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 { target } = component.props;
|
||||||
const { top, left } = retVal.props.style;
|
const { top, left } = retVal.props.style;
|
||||||
if (!target || !top || !left) return;
|
if (!target || !top || !left) return;
|
||||||
|
|
Loading…
Reference in New Issue