Merge pull request #891 from Hexastack/fix/empty-file-when-no-dataset-is-selected

fix: empty file when no dataset is selected
This commit is contained in:
Yassine 2025-04-10 08:48:22 +01:00 committed by GitHub
commit b2115d141f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -392,6 +392,7 @@ export default function NlpSample() {
`nlpsample/export${type ? `?type=${type}` : ""}`,
)}
startIcon={<DownloadIcon />}
disabled={dataGridProps?.rows?.length === 0}
>
{t("button.export")}
</Button>