diff --git a/x-pack/plugins/osquery/public/editor/index.tsx b/x-pack/plugins/osquery/public/editor/index.tsx index 876bdb7614a5c..5852f04099207 100644 --- a/x-pack/plugins/osquery/public/editor/index.tsx +++ b/x-pack/plugins/osquery/public/editor/index.tsx @@ -34,7 +34,6 @@ const OsqueryEditorComponent: React.FC = ({ }) => { const [editorValue, setEditorValue] = useState(defaultValue ?? ''); const [height, setHeight] = useState(MIN_HEIGHT); - useDebounce( () => { onChange(editorValue); diff --git a/x-pack/plugins/osquery/public/editor/osquery_highlight_rules.ts b/x-pack/plugins/osquery/public/editor/osquery_highlight_rules.ts index b9cdcff73793f..c0026e8e8a986 100644 --- a/x-pack/plugins/osquery/public/editor/osquery_highlight_rules.ts +++ b/x-pack/plugins/osquery/public/editor/osquery_highlight_rules.ts @@ -136,6 +136,7 @@ const theme = { export const initializeOsqueryEditor = () => { let disposable: IDisposable | null = null; if (monaco) { + monaco?.editor.defineTheme('osquery', theme); disposable = monaco.languages.onLanguage('sql', () => { monaco.languages.setMonarchTokensProvider('sql', { ignoreCase: true, @@ -175,7 +176,6 @@ export const initializeOsqueryEditor = () => { ], }, }); - monaco?.editor.defineTheme('osquery', theme); monaco?.languages.registerCompletionItemProvider('sql', { triggerCharacters: ['.'], provideCompletionItems: (model: monaco.editor.ITextModel, position: monaco.Position) => { diff --git a/x-pack/plugins/osquery/public/live_queries/form/index.tsx b/x-pack/plugins/osquery/public/live_queries/form/index.tsx index badd67fe3bf84..5f256b505043f 100644 --- a/x-pack/plugins/osquery/public/live_queries/form/index.tsx +++ b/x-pack/plugins/osquery/public/live_queries/form/index.tsx @@ -26,7 +26,7 @@ import { usePacks } from '../../packs/use_packs'; import { useCreateLiveQuery } from '../use_create_live_query_action'; import { useLiveQueryDetails } from '../../actions/use_live_query_details'; import type { AgentSelection } from '../../agents/types'; -import { LiveQueryQueryField } from './live_query_query_field'; +import LiveQueryQueryField from './live_query_query_field'; import { AgentsTableField } from './agents_table_field'; import { savedQueryDataSerializer } from '../../saved_queries/form/use_saved_query_form'; import { PackFieldWrapper } from '../../shared_components/osquery_response_action_type/pack_field_wrapper'; diff --git a/x-pack/plugins/osquery/public/live_queries/form/live_query_query_field.tsx b/x-pack/plugins/osquery/public/live_queries/form/live_query_query_field.tsx index 6372604d8b677..100319f7c16a5 100644 --- a/x-pack/plugins/osquery/public/live_queries/form/live_query_query_field.tsx +++ b/x-pack/plugins/osquery/public/live_queries/form/live_query_query_field.tsx @@ -162,7 +162,7 @@ const LiveQueryQueryFieldComponent: React.FC = ({ ); }; -export const LiveQueryQueryField = React.memo(LiveQueryQueryFieldComponent); +const LiveQueryQueryField = React.memo(LiveQueryQueryFieldComponent); // eslint-disable-next-line import/no-default-export export { LiveQueryQueryField as default }; diff --git a/x-pack/plugins/osquery/public/shared_components/osquery_response_action_type/index.tsx b/x-pack/plugins/osquery/public/shared_components/osquery_response_action_type/index.tsx index 5902eafddaa84..064e55d9350b2 100644 --- a/x-pack/plugins/osquery/public/shared_components/osquery_response_action_type/index.tsx +++ b/x-pack/plugins/osquery/public/shared_components/osquery_response_action_type/index.tsx @@ -16,7 +16,7 @@ import type { ECSMapping } from '@kbn/osquery-io-ts-types'; import { usePack } from '../../packs/use_pack'; import { QueryPackSelectable } from '../../live_queries/form/query_pack_selectable'; import { useKibana } from '../../common/lib/kibana'; -import { LiveQueryQueryField } from '../../live_queries/form/live_query_query_field'; +import LiveQueryQueryField from '../../live_queries/form/live_query_query_field'; import { PackFieldWrapper } from './pack_field_wrapper'; interface OsqueryResponseActionsValues {