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

fixes #172

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