Skip to content

Commit

Permalink
Reverting back to previous generation handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Griffith committed May 28, 2020
1 parent 76904b7 commit 2a5f9a0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export function getJobParamsFromRequest(
};
const { timerange, state } = request.body as JobParamsPostPayloadPanelCsv;

const post = Object.assign(
{},
state ? { state } : {},
timerange && timerange.min && timerange.max ? { timerange } : { timerange: {} }
);
const post = timerange || state ? { timerange, state } : undefined;

return {
isImmediate: opts.isImmediate,
Expand Down

0 comments on commit 2a5f9a0

Please sign in to comment.