Skip to content

Commit 63a30db

Browse files
authored
fix: enable adding span to empty dataset (#10213)
1 parent 2ac490e commit 63a30db

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

app/src/components/dataset/DatasetSelect.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,25 +86,15 @@ export function DatasetSelect(props: DatasetSelectProps) {
8686
`}
8787
>
8888
{data.datasets.edges.map(({ dataset }) => {
89-
const isDisabled = dataset.exampleCount === 0;
9089
return (
91-
<SelectItem
92-
key={dataset.id}
93-
id={dataset.id}
94-
isDisabled={isDisabled}
95-
>
90+
<SelectItem key={dataset.id} id={dataset.id}>
9691
<Flex direction="column" gap="size-100" width="100%">
9792
<Flex
9893
direction="row"
9994
alignItems="center"
10095
gap="size-200"
10196
justifyContent="space-between"
10297
width="100%"
103-
css={css`
104-
opacity: ${isDisabled
105-
? "var(--ac-global-opacity-disabled)"
106-
: 1};
107-
`}
10898
>
10999
<Text>{dataset.name}</Text>
110100
<Text color="text-700" size="XS">

0 commit comments

Comments
 (0)