Skip to content

Commit

Permalink
fix missing filters
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Apr 24, 2024
1 parent 1d74ce2 commit d648dfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/fishing-map/features/datasets/datasets.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,11 @@ export const datasetHasSchemaFields = (dataset: Dataset, schema: SupportedDatase
if (!schemaConfig) {
return false
}
if (schemaConfig.type === 'array') {
if (
schemaConfig.type === 'array' ||
schemaConfig.type === 'boolean' ||
schemaConfig.type === 'range'
) {
const schemaEnum = schemaConfig?.enum || schemaConfig?.items?.enum
return schemaEnum !== undefined && schemaEnum.length > 0
}
Expand Down

0 comments on commit d648dfa

Please sign in to comment.