Skip to content

Commit

Permalink
fix: #3306
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Oct 23, 2024
1 parent d57a25d commit 0786a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/components/modals/DatasetUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const DatasetUploadModal: React.FC<DatasetUploadDialogProps> = ({ open, onClose,
let response;
if (datasetType === "table") {
response = await createTableLayer(payload, projectId);
} else if (datasetType === "feature_layer") {
} else if (datasetType === "feature_layer") {
response = await createFeatureLayer(payload, projectId);
}
const jobId = response?.job_id;
Expand Down Expand Up @@ -279,7 +279,7 @@ const DatasetUploadModal: React.FC<DatasetUploadDialogProps> = ({ open, onClose,
{activeStep < steps.length - 1 && (
<Button
disabled={
(activeStep === 0 && fileValue === null) ||
(activeStep === 0 && !fileValue) ||
(activeStep === 1 && (isValid !== true || selectedFolder === null))
}
onClick={handleNext}
Expand Down

0 comments on commit 0786a24

Please sign in to comment.