From 6596fce7ece914daf6fc124ee81f5523c1c3b797 Mon Sep 17 00:00:00 2001 From: rbrtj Date: Tue, 26 Nov 2024 15:38:39 +0100 Subject: [PATCH] fix types --- .../initialize_log_rate_analysis_analysis_controls.ts | 2 +- .../aiops/public/embeddables/log_rate_analysis/types.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/initialize_log_rate_analysis_analysis_controls.ts b/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/initialize_log_rate_analysis_analysis_controls.ts index 9d8a49b8f0e9c..d155546e28bf6 100644 --- a/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/initialize_log_rate_analysis_analysis_controls.ts +++ b/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/initialize_log_rate_analysis_analysis_controls.ts @@ -11,7 +11,7 @@ import type { LogRateAnalysisComponentApi, LogRateAnalysisEmbeddableState } from type LogRateAnalysisEmbeddableCustomState = Omit< LogRateAnalysisEmbeddableState, - 'timeRange' | 'title' | 'description' | 'hidePanelTitles' + 'timeRange' | 'title' | 'description' | 'hidePanelTitles' | 'windowParameters' >; export const initializeLogRateAnalysisControls = (rawState: LogRateAnalysisEmbeddableState) => { diff --git a/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/types.ts b/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/types.ts index 3d4fe1e05ea35..28a68cecd36f3 100644 --- a/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/types.ts +++ b/x-pack/plugins/aiops/public/embeddables/log_rate_analysis/types.ts @@ -38,4 +38,7 @@ export interface LogRateAnalysisEmbeddableInitialState dataViewId?: string; } -export type LogRateAnalysisEmbeddableRuntimeState = LogRateAnalysisEmbeddableState; +export type LogRateAnalysisEmbeddableRuntimeState = Omit< + LogRateAnalysisEmbeddableState, + 'windowParameters' +>;