We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ad0d1 commit cb71e1fCopy full SHA for cb71e1f
dataset/src/main/kotlin/com/cosmotech/dataset/service/DatasetServiceImpl.kt
@@ -310,8 +310,8 @@ class DatasetServiceImpl(
310
// This call verify by itself that we have the read authorization in the dataset
311
val dataset = findDatasetById(organizationId, datasetId)
312
return when (dataset.sourceType) {
313
- null,
314
- DatasetSourceType.None -> Dataset.Status.DRAFT.value
+ null -> Dataset.Status.DRAFT.value
+ DatasetSourceType.None -> dataset.status!!.value
315
DatasetSourceType.File -> {
316
if (dataset.status == Dataset.Status.DRAFT) {
317
return Dataset.Status.DRAFT.value
0 commit comments