mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
fix: handle bad tool name input
This commit is contained in:
@@ -184,7 +184,13 @@ export default function ChunkModal({
|
||||
message="Are you sure you want to delete this chunk?"
|
||||
modalState={deleteModal}
|
||||
setModalState={setDeleteModal}
|
||||
handleSubmit={handleDelete ? handleDelete : () => {}}
|
||||
handleSubmit={
|
||||
handleDelete
|
||||
? handleDelete
|
||||
: () => {
|
||||
/* no-op */
|
||||
}
|
||||
}
|
||||
submitLabel="Delete"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user