From 2009187c7a4f8690ec7ce0782ac120b4f6a4ec64 Mon Sep 17 00:00:00 2001 From: Rishav Raj <2020raj.rishav@gmail.com> Date: Fri, 12 Jan 2024 16:57:09 +0530 Subject: [PATCH] Update Home.js The main issue in the provided code is a typo in the constructor where the state is initialized. The state is initialized using 'this.st4te', but it should be 'this.state'. Replace 'this.st4te' with 'this.state' in the constructor, and it should resolve the issue --- src/js/pages/Home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/pages/Home.js b/src/js/pages/Home.js index 05e8ac4c..8d002d4b 100644 --- a/src/js/pages/Home.js +++ b/src/js/pages/Home.js @@ -300,7 +300,7 @@ class Home extends React.PureComponent { constructor(props) { super(props); - this.st4te = { + this.state = { classes: props.classes, _settings: JSON.parse(props.settings), _history: HISTORY,