From 77d6e23c45f1d27211f91b07749a5d7aa3fd74bd Mon Sep 17 00:00:00 2001 From: martin legrand Date: Wed, 16 Apr 2025 15:14:47 +0200 Subject: [PATCH] refactor : frontend line --- frontend/agentic-seek/src/App.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/agentic-seek/src/App.js b/frontend/agentic-seek/src/App.js index 940844d..ea210d4 100644 --- a/frontend/agentic-seek/src/App.js +++ b/frontend/agentic-seek/src/App.js @@ -9,7 +9,7 @@ function App() { const [error, setError] = useState(null); const [currentView, setCurrentView] = useState('blocks'); const [responseData, setResponseData] = useState(null); - const [isOnline, setIsOnline] = useState(false); // Added state + const [isOnline, setIsOnline] = useState(false); const messagesEndRef = useRef(null); useEffect(() => { @@ -17,7 +17,6 @@ function App() { checkHealth(); }, [messages]); - // Added: checks /health const checkHealth = async () => { try { await axios.get('http://0.0.0.0:8000/health'); @@ -229,7 +228,7 @@ function App() { e.target.src = 'placeholder.png'; console.error('Failed to load screenshot'); }} - key={responseData?.screenshotTimestamp || 'default'} // Force re-render + key={responseData?.screenshotTimestamp || 'default'} /> )}