Skip to content

Commit dcf79fd

Browse files
author
Amelia Wattenbeger
committed
add geojson files to the file picker
1 parent 52ce2a9 commit dcf79fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const getFilesFromRes = (res: any) => {
5252
.map((file: any) => file.path)
5353
.filter((path: string) => {
5454
const extension = path.split(".").pop() || "";
55-
const validExtensions = ["csv", "tsv", "json", "yml", "yaml"];
55+
const validExtensions = ["csv", "tsv", "json", "geojson", "topojson", "yml", "yaml"];
5656
return (
5757
validExtensions.includes(extension) &&
5858
!ignoredFiles.includes(path.split("/").slice(-1)[0]) &&

0 commit comments

Comments
 (0)