perf: action cache (#300)
This commit is contained in:
@@ -316,9 +316,10 @@ const FileCard = ({ kbId }: { kbId: string }) => {
|
||||
<Box>{t('common.Delete')}</Box>
|
||||
</Flex>
|
||||
),
|
||||
onClick: openConfirm(() => {
|
||||
onDeleteFile(file.id);
|
||||
})
|
||||
onClick: () =>
|
||||
openConfirm(() => {
|
||||
onDeleteFile(file.id);
|
||||
})()
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user