Skip to content

Commit

Permalink
Ensure images with no caption download in gallery (#5735)
Browse files Browse the repository at this point in the history
* ensure images with no caption download in gallery

* add changeset

---------

Co-authored-by: gradio-pr-bot <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2023
1 parent c9af4f7 commit abb5e9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/green-candles-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/gallery": patch
"gradio": patch
---

fix:Ensure images with no caption download in gallery
2 changes: 2 additions & 0 deletions js/gallery/static/Gallery.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
return selected.data;
} else if (typeof selected === "string") {
return selected;
} else if (Array.isArray(selected)) {
return getHrefValue(selected[0]);
}
return "";
}
Expand Down

0 comments on commit abb5e9d

Please sign in to comment.