Skip to content

Commit

Permalink
Merge pull request #74 from concord-consortium/187569691-0-cases-bug
Browse files Browse the repository at this point in the history
numeric type and data.length test
  • Loading branch information
bacalj authored Jul 8, 2024
2 parents 9f1a6da + 0113ed7 commit d2ca5b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const App = () => {
const allDefined = (startDate && endDate && units && selectedFrequency &&
weatherStation && timezone);

if (data && allDefined) {
if (data.length && allDefined) {
const formatDataProps = {
data,
timezone,
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export const kWeatherStationCollectionAttrs = [
name: "elevation",
unit: "ft",
precision: "0",
type: "number"
type: "numeric",
},
{ name: "isdID"},
{
Expand Down

0 comments on commit d2ca5b8

Please sign in to comment.