Skip to content

Commit

Permalink
Merge pull request #181 from Scale3-Labs/dylan/create-data-hot-fix
Browse files Browse the repository at this point in the history
adding projectid to api call
  • Loading branch information
dylanzuber-scale3 authored Jul 9, 2024
2 parents 9caae7b + 7160527 commit 4bf95d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function Dataset() {
<ChevronLeft className="mr-1" />
Back
</Button>
<CreateData datasetId={dataset_id} />
<CreateData projectId={projectId} datasetId={dataset_id} />
<DownloadDataset
projectId={projectId}
datasetId={dataset_id}
Expand Down
3 changes: 3 additions & 0 deletions components/project/dataset/create-data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ import { z } from "zod";

export function CreateData({
datasetId,
projectId,
disabled = false,
variant = "default",
className = "",
}: {
datasetId?: string;
projectId?: string;
disabled?: boolean;
variant?: any;
className?: string;
Expand Down Expand Up @@ -88,6 +90,7 @@ export function CreateData({
},
],
datasetId,
projectId,
}),
});
await queryClient.invalidateQueries(datasetId);
Expand Down

0 comments on commit 4bf95d2

Please sign in to comment.