Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
suhailkakar committed Oct 9, 2024
1 parent b1924bc commit 36cd50a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ const SegmentInput = ({
type="file"
onChange={(e) => {
const file = e.target.files?.[0];
if (file) {
if (file && file.type.startsWith("image/")) {
setSelectedSegmentImage(URL.createObjectURL(file));
} else {
setSelectedSegmentImage(null);
Expand Down

0 comments on commit 36cd50a

Please sign in to comment.