mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Osquery] More fixes to 8.3 (#134311)
* fix platform change in packs - saved queries * fix minimum version of osquery in saved queries and fix platform again
This commit is contained in:
parent
188b9e094d
commit
56831590e4
3 changed files with 2 additions and 7 deletions
|
@ -72,7 +72,7 @@ const QueryFlyoutComponent: React.FC<QueryFlyoutProps> = ({
|
|||
id: savedQuery.id,
|
||||
query: savedQuery.query,
|
||||
description: savedQuery.description,
|
||||
platform: savedQuery.platform,
|
||||
platform: savedQuery.platform ? savedQuery.platform : 'linux,windows,darwin',
|
||||
version: savedQuery.version,
|
||||
interval: savedQuery.interval,
|
||||
// @ts-expect-error update types
|
||||
|
|
|
@ -89,11 +89,6 @@ export const usePackQueryForm = ({
|
|||
draft.platform.join(',');
|
||||
}
|
||||
|
||||
if (draft.platform?.split(',').length === 3) {
|
||||
// if all platforms are checked then use undefined
|
||||
delete draft.platform;
|
||||
}
|
||||
|
||||
if (isArray(draft.version)) {
|
||||
if (!draft.version.length) {
|
||||
delete draft.version;
|
||||
|
|
|
@ -59,7 +59,7 @@ export const useSavedQueryForm = ({ defaultValue, handleSubmit }: UseSavedQueryF
|
|||
if (isArray(draft.version)) {
|
||||
if (!draft.version.length) {
|
||||
// @ts-expect-error update types
|
||||
delete draft.version;
|
||||
draft.version = '';
|
||||
} else {
|
||||
draft.version = draft.version[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue