diff --git a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap index 7eb808caea..48a65f4ac6 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap @@ -311,6 +311,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs @@ -1564,6 +1565,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs @@ -2758,6 +2760,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -3925,6 +3928,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -5151,6 +5155,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -6318,6 +6323,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -7537,6 +7543,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -8641,6 +8648,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -9807,6 +9815,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs @@ -10940,6 +10949,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs @@ -12132,6 +12142,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -13299,6 +13310,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -14525,6 +14537,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -15692,6 +15705,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" /> @@ -16920,6 +16934,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs @@ -18169,6 +18184,7 @@ Object { placeholder="Enter PPL query" rows="6" spellcheck="false" + style="margin-top: 0px; height: 18px; padding: 8px;" type="search" > source = openserach_dashboard_sample_logs diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index b958bdaf36..7a96c78913 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -516,6 +516,13 @@ exports[`Log Config component renders empty log config 1`] = ` onKeyDown={[Function]} placeholder="Enter PPL query" spellCheck="false" + style={ + Object { + "height": "18px", + "marginTop": "0px", + "padding": "8px", + } + } type="search" value="" > @@ -541,6 +548,13 @@ exports[`Log Config component renders empty log config 1`] = ` placeholder="Enter PPL query" rows={6} spellCheck="false" + style={ + Object { + "height": "18px", + "marginTop": "0px", + "padding": "8px", + } + } type="search" value="" /> @@ -1126,6 +1140,13 @@ exports[`Log Config component renders with query 1`] = ` onKeyDown={[Function]} placeholder="Enter PPL query" spellCheck="false" + style={ + Object { + "height": "18px", + "marginTop": "0px", + "padding": "8px", + } + } type="search" value="source = openserach_dashboard_sample_logs" > @@ -1151,6 +1172,13 @@ exports[`Log Config component renders with query 1`] = ` placeholder="Enter PPL query" rows={6} spellCheck="false" + style={ + Object { + "height": "18px", + "marginTop": "0px", + "padding": "8px", + } + } type="search" value="source = openserach_dashboard_sample_logs" /> diff --git a/public/components/event_analytics/explorer/explorer.tsx b/public/components/event_analytics/explorer/explorer.tsx index 2177c2863a..e20f288fa4 100644 --- a/public/components/event_analytics/explorer/explorer.tsx +++ b/public/components/event_analytics/explorer/explorer.tsx @@ -424,7 +424,7 @@ export const Explorer = ({ }; useEffect(() => { - if (explorerSearchMeta.datasources?.[0]?.type === 'DEFAULT_INDEX_PATTERNS') { + if (explorerSearchMeta.datasources?.[0]?.type !== 'DEFAULT_INDEX_PATTERNS') { dispatch( changeQuery({ tabId,