Skip to content
Snippets Groups Projects
Commit 54f895ca authored by Greg Fodor's avatar Greg Fodor
Browse files

Hotfix for react error in chat, potential fix for duck menu not showing

parent ad0aacc5
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,8 @@ AFRAME.registerComponent("position-at-box-shape-border", {
if (!this.halfExtents || this.mesh !== this.el.getObject3D("mesh") || this.shape !== this.el.components.shape) {
this.mesh = this.el.getObject3D("mesh");
this.shape = this.el.components.shape;
if (this.el.components.shape) {
this.shape = this.el.components.shape;
this.halfExtents.copy(this.shape.data.halfExtents);
......
......@@ -16,7 +16,7 @@ export default class ChatCommandHelp extends Component {
{commands.map(
c =>
(this.props.matchingPrefix === "" || c.startsWith(this.props.matchingPrefix)) && (
<div className={styles.entry}>
<div className={styles.entry} key={c}>
<div className={styles.command}>/{c}</div>
<div>
<FormattedMessage id={`commands.${c}`} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment