Skip to content

Commit

Permalink
[ES|QL] capitalize FROM in recommended queries (elastic#205122)
Browse files Browse the repository at this point in the history
## Summary

`FROM` wasn't capitalized when selected from the menu:



https://github.com/user-attachments/assets/939c24b6-5ae5-417b-9dfa-fb4d411b8abc



Now it is.

Co-authored-by: Stratoula Kalafateli <[email protected]>
  • Loading branch information
drewdaemon and stratoula authored Jan 2, 2025
1 parent 2ac942b commit e5cf28b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ESQLMenuPopover: React.FC<ESQLMenuPopoverProps> = ({
const esqlContextMenuPanels = useMemo(() => {
const recommendedQueries = [];
if (adHocDataview && typeof adHocDataview !== 'string') {
const queryString = `from ${adHocDataview.name}`;
const queryString = `FROM ${adHocDataview.name}`;
const timeFieldName =
adHocDataview.timeFieldName ?? adHocDataview.fields?.getByType('date')?.[0]?.name;

Expand Down

0 comments on commit e5cf28b

Please sign in to comment.