mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: empty file when no dataset is selected
This commit is contained in:
parent
3804d1774b
commit
0d5678ce25
@ -392,6 +392,7 @@ export default function NlpSample() {
|
|||||||
`nlpsample/export${type ? `?type=${type}` : ""}`,
|
`nlpsample/export${type ? `?type=${type}` : ""}`,
|
||||||
)}
|
)}
|
||||||
startIcon={<DownloadIcon />}
|
startIcon={<DownloadIcon />}
|
||||||
|
disabled={dataGridProps?.rows?.length === 0}
|
||||||
>
|
>
|
||||||
{t("button.export")}
|
{t("button.export")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user