[Fleet] Allow to edit package policy with input level template (#85277)
This commit is contained in:
parent
0d682a95bd
commit
a264038b36
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ export const EditPackagePolicyPage: React.FunctionComponent = () => {
|
||||||
const newPackagePolicy = {
|
const newPackagePolicy = {
|
||||||
...restOfPackagePolicy,
|
...restOfPackagePolicy,
|
||||||
inputs: inputs.map((input) => {
|
inputs: inputs.map((input) => {
|
||||||
const { streams, ...restOfInput } = input;
|
// Remove `compiled_input` from all input info, we assign this after saving
|
||||||
|
const { streams, compiled_input: compiledInput, ...restOfInput } = input;
|
||||||
return {
|
return {
|
||||||
...restOfInput,
|
...restOfInput,
|
||||||
streams: streams.map((stream) => {
|
streams: streams.map((stream) => {
|
||||||
|
|
Loading…
Reference in a new issue