Add gzipped download endpoint

This commit is contained in:
John Lyon-Smith
2018-04-26 18:00:16 -07:00
parent 5e5daa2e78
commit 96e2599cdb
9 changed files with 390 additions and 164 deletions

View File

@@ -66,6 +66,7 @@ export class WorkItem extends React.Component {
},
photos: {
isValid: (r, v) => v && v.length > 0,
initValue: [],
},
details: {
isValid: (r, v) => v !== "",
@@ -278,6 +279,7 @@ export class WorkItem extends React.Component {
height: 400,
marginBottom: 10,
}}
showsUserLocation
showsBuildings={false}
showsTraffic={false}
showsIndoors={false}

View File

@@ -69,7 +69,7 @@ export const dotify = (s) => {
export const regionContainingPoints = (points, inset) => {
let minX, maxX, minY, maxY
if (!points) {
if (!points || points.length === 0) {
return null
}