mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-04 18:20:09 +00:00
fix : message not displayed bug
This commit is contained in:
parent
600bff8da4
commit
7f3682e884
@ -10,7 +10,7 @@ function App() {
|
||||
const [currentView, setCurrentView] = useState('blocks');
|
||||
const [responseData, setResponseData] = useState(null);
|
||||
const [isOnline, setIsOnline] = useState(false);
|
||||
const [status, setStatus] = useState('No agent working.');
|
||||
const [status, setStatus] = useState('Agents ready');
|
||||
const messagesEndRef = useRef(null);
|
||||
|
||||
useEffect(() => {
|
||||
@ -72,7 +72,7 @@ function App() {
|
||||
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
|
||||
const data = res.data;
|
||||
const answerExists = messages.some(
|
||||
(msg) => msg.timestamp === data.timestamp || data.answer != undefined
|
||||
(msg) => msg.timestamp === data.timestamp || data.answer === undefined
|
||||
);
|
||||
if (!answerExists) {
|
||||
setMessages((prev) => [
|
||||
|
@ -78,7 +78,6 @@ class Agent():
|
||||
def get_tools(self) -> dict:
|
||||
return self.tools
|
||||
|
||||
@property
|
||||
def get_blocks_result(self) -> list:
|
||||
return self.blocks_result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user