diff --git a/src/Mood/Mood.js b/src/Mood/Mood.js index 65c282e666621243f11bd29dc6aacb603b59212e..b41f8fcaefdc8918569fd1ba0d11d17d5ed14828 100644 --- a/src/Mood/Mood.js +++ b/src/Mood/Mood.js @@ -14,7 +14,7 @@ export function Mood(props) { "BORED": "images/mood/mood-bored.svg" }; - const config = this.props.node.getConfig() + const config = props.node.getConfig() if (config && 'displayMode' in config) { if (config.displayMode === "readme") { return <p className="about">The <b>current mood</b> of the agent regarding the valences of its actions.</p>;