Skip to content

Commit

Permalink
[Fleet] Allow to edit package policy with input level template
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Dec 8, 2020
1 parent bdd0e25 commit a4b81be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a4b81be

Please sign in to comment.