Skip to content

Commit

Permalink
Merge branch 'use-fetch-data-view-hook' of github.com:dhurley14/kiban…
Browse files Browse the repository at this point in the history
…a into use-fetch-data-view-hook
  • Loading branch information
dhurley14 committed Jun 23, 2023
2 parents 9576fde + 5fef369 commit ec7f168
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,13 @@ const StepDefineRuleComponent: FC<StepDefineRuleProps> = ({
assertFieldsExists(indexPattern?.fields)
? Object.values(indexPattern?.fields ?? {}).reduce(
(acc, field) => {
if (field?.esTypes?.includes('keyword')) {
acc.keywordFields.push({ label: field.name });
} else if (field.type === 'date') {
acc.dateFields.push({ label: field.name });
} else if (field.type !== 'date') {
acc.nonDateFields.push({ label: field.name });
}
if (field?.esTypes?.includes('keyword')) {
acc.keywordFields.push({ label: field.name });
} else if (field.type === 'date') {
acc.dateFields.push({ label: field.name });
} else if (field.type !== 'date') {
acc.nonDateFields.push({ label: field.name });
}
return acc;
},
{ keywordFields: [], dateFields: [], nonDateFields: [] } as {
Expand Down

0 comments on commit ec7f168

Please sign in to comment.