mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Fleet] Fix form state for input integration (#174248)
This commit is contained in:
parent
51d708e1c0
commit
f46fdfc3ce
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { cloneDeep } from 'lodash';
|
||||
|
||||
import { DATASET_VAR_NAME } from '../../../../../../../common/constants';
|
||||
|
||||
import type { NewPackagePolicy } from '../../../../types';
|
||||
|
@ -14,7 +16,7 @@ export function prepareInputPackagePolicyDataset(newPolicy: NewPackagePolicy): {
|
|||
forceCreateNeeded: boolean;
|
||||
} {
|
||||
let forceCreateNeeded = false;
|
||||
const { inputs } = newPolicy;
|
||||
const { inputs } = cloneDeep(newPolicy);
|
||||
|
||||
if (!inputs || !inputs.length) {
|
||||
return { policy: newPolicy, forceCreateNeeded: false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue