[Fleet] Allow to edit package policy with input level template (#85277)

This commit is contained in:
Nicolas Chaulet 2020-12-09 09:10:07 -05:00 committed by GitHub
parent 0d682a95bd
commit a264038b36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) => {