fix: empty file when no dataset is selected

This commit is contained in:
hexastack 2025-04-07 08:24:50 +01:00
parent 3804d1774b
commit 0d5678ce25

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>