fix: handle bad tool name input

This commit is contained in:
Alex
2025-02-10 16:20:37 +00:00
parent 7db7c9e978
commit 60772889d5
5 changed files with 66 additions and 13 deletions

View File

@@ -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>