diff --git a/src/App.js b/src/App.js index 6dd72a1..d27cc4e 100644 --- a/src/App.js +++ b/src/App.js @@ -39,7 +39,7 @@ function ChangeFloor({ currentFloor, callbackFloorChanged }) { // Display a floor callbackFloorChanged(data[0].buildings[0].floors[0].id) }); - }, []); + }, [callbackFloorChanged]); if (currentFloor === undefined) return;