Skip to content

Commit

Permalink
fix default statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Jan 18, 2024
1 parent da3c2a9 commit 164d9b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function CreateSourceEditor(props: Props) {
} else if (initialDateFields.length) {
initialDateField = initialDateFields[0];
}
const initialEsql = `from ${dataView.getIndexPattern()} | keep ${geoField} | limit 10000`;
const initialEsql = `from ${dataView.getIndexPattern()} | keep ${geoField.name} | limit 10000`;
setDateField(initialDateField);
setEsql(initialEsql);
props.onSourceConfigChange({
Expand Down

0 comments on commit 164d9b6

Please sign in to comment.