mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-06 18:45:08 +08:00
Fix dataset card not responding to click events (#9574)
### What problem does this PR solve? Fix home card not responding to click events ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
@ -20,9 +20,7 @@ export function AgentCard({ data, showAgentRenameModal }: DatasetCardProps) {
|
||||
<MoreButton></MoreButton>
|
||||
</AgentDropdown>
|
||||
}
|
||||
onClick={() => {
|
||||
navigateToAgent(data?.id);
|
||||
}}
|
||||
onClick={navigateToAgent(data?.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -32,9 +32,7 @@ export function DatasetCard({
|
||||
<MoreButton></MoreButton>
|
||||
</DatasetDropdown>
|
||||
}
|
||||
onClick={() => {
|
||||
navigateToDataset(dataset.id);
|
||||
}}
|
||||
onClick={navigateToDataset(dataset.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ export function SearchList() {
|
||||
title: x.name,
|
||||
update_time: x.update_time,
|
||||
}}
|
||||
onClick={() => navigateToSearch(x.id)}
|
||||
onClick={navigateToSearch(x.id)}
|
||||
></ApplicationCard>
|
||||
));
|
||||
}
|
||||
|
||||
@ -25,9 +25,7 @@ export function ChatCard({ data, showChatRenameModal }: IProps) {
|
||||
<MoreButton></MoreButton>
|
||||
</ChatDropdown>
|
||||
}
|
||||
onClick={() => {
|
||||
navigateToChat(data?.id);
|
||||
}}
|
||||
onClick={navigateToChat(data?.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@ -85,7 +85,7 @@ export default function SearchList() {
|
||||
res = await createSearch({ name: values.name });
|
||||
}
|
||||
if (res && !searchData?.id) {
|
||||
navigateToSearch(res?.search_id);
|
||||
navigateToSearch(res?.search_id)();
|
||||
}
|
||||
if (!isLoading) {
|
||||
setOpenCreateModal(false);
|
||||
|
||||
@ -22,9 +22,7 @@ export function SearchCard({ data, showSearchRenameModal }: IProps) {
|
||||
<MoreButton></MoreButton>
|
||||
</SearchDropdown>
|
||||
}
|
||||
onClick={() => {
|
||||
navigateToSearch(data?.id);
|
||||
}}
|
||||
onClick={navigateToSearch(data?.id)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user