Skip to content
Snippets Groups Projects
Commit 52bfc8f0 authored by ali asaria's avatar ali asaria
Browse files

fixes #172

parent b6460f31
No related branches found
No related tags found
No related merge requests found
......@@ -88,8 +88,12 @@ export default function DatasetCard({
color="neutral"
variant="outlined"
onClick={async () => {
await fetch(chatAPI.Endpoints.Dataset.Delete(name));
parentMutate();
if (
confirm('Are you sure you want to delete this dataset?')
) {
await fetch(chatAPI.Endpoints.Dataset.Delete(name));
parentMutate();
}
}}
>
<Trash2Icon />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment