From f2c461d16eeeda48ab2246805ccbeff3acc03ace Mon Sep 17 00:00:00 2001 From: Maks-s Date: Fri, 19 Apr 2019 22:13:43 +0200 Subject: [PATCH] Fix context menu console error --- client/src/ui/contextmenus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/ui/contextmenus.js b/client/src/ui/contextmenus.js index 0c53af8f..de811791 100644 --- a/client/src/ui/contextmenus.js +++ b/client/src/ui/contextmenus.js @@ -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;