mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-06-02 07:12:02 +00:00
chore: fix infinite rerender
This commit is contained in:
parent
6189fd822c
commit
1daca2963d
1 changed files with 11 additions and 0 deletions
|
|
@ -523,6 +523,17 @@ const projectStore = create<ProjectStore>()((set, get) => ({
|
|||
//TODO: For now handle the question as unique identifier to avoid duplicate
|
||||
if (!projectId) projectId = 'Replay: ' + question;
|
||||
|
||||
if (!taskIds || taskIds.length === 0) {
|
||||
console.warn('[ProjectStore] No taskIds provided for replayProject');
|
||||
return createProject(
|
||||
`Replay Project ${question}`,
|
||||
`No tasks to replay`,
|
||||
projectId,
|
||||
ProjectType.NORMAL,
|
||||
historyId
|
||||
);
|
||||
}
|
||||
|
||||
// If projectId is provided, reset that project
|
||||
if (projectId) {
|
||||
if (projects[projectId]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue