mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
Fix unexpected rendering of Dataset (#8987)
* Fix unexpected rendering of Dataset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
parent
54da6da115
commit
7b288cf677
6
.changeset/violet-eyes-stand.md
Normal file
6
.changeset/violet-eyes-stand.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/dataset": patch
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Fix unexpected rendering of Dataset
|
@ -53,7 +53,11 @@
|
||||
}
|
||||
|
||||
$: {
|
||||
samples = sample_labels ? sample_labels.map((e) => [e]) : samples || [];
|
||||
if (sample_labels) {
|
||||
samples = sample_labels.map((e) => [e]);
|
||||
} else if (!samples) {
|
||||
samples = [];
|
||||
}
|
||||
paginate = samples.length > samples_per_page;
|
||||
if (paginate) {
|
||||
visible_pages = [];
|
||||
|
Loading…
Reference in New Issue
Block a user