[Fleet] Allow to edit package policy with input level template (#85277)
This commit is contained in:
parent
0d682a95bd
commit
a264038b36
|
@ -108,7 +108,8 @@ export const EditPackagePolicyPage: React.FunctionComponent = () => {
|
|||
const newPackagePolicy = {
|
||||
...restOfPackagePolicy,
|
||||
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 {
|
||||
...restOfInput,
|
||||
streams: streams.map((stream) => {
|
||||
|
|
Loading…
Reference in a new issue