Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Jul 20, 2022
1 parent 9835d6b commit 36f46e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ interface ExplainLogRateSpikesProps {
/** The data view to analyze. */
dataView: DataView;
/** The saved search to analyze. */
savedSearch: SavedSearch | SavedSearchSavedObject;
savedSearch: SavedSearch | SavedSearchSavedObject | null;
}

export const ExplainLogRateSpikes: FC<ExplainLogRateSpikesProps> = ({ dataView, savedSearch }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface ExplainLogRateSpikesWrapperProps {
/** The data view to analyze. */
dataView: DataView;
/** The saved search to analyze. */
savedSearch: SavedSearch | SavedSearchSavedObject;
savedSearch: SavedSearch | SavedSearchSavedObject | null;
}

const defaultSearchQuery = {
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/aiops/public/hooks/use_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useData = (
{
currentDataView,
currentSavedSearch,
}: { currentDataView: DataView; currentSavedSearch: SavedSearch | SavedSearchSavedObject },
}: { currentDataView: DataView; currentSavedSearch: SavedSearch | SavedSearchSavedObject | null },
aiopsListState: AiOpsIndexBasedAppState,
onUpdate: (params: Dictionary<unknown>) => void
) => {
Expand Down

0 comments on commit 36f46e1

Please sign in to comment.