Skip to content

Commit

Permalink
Merge pull request #80 from linear/leela/lin-27822-zapier-resets-prio…
Browse files Browse the repository at this point in the history
…rity-to-0-if-no-value-sent

Don't set priority to 0 if unspecified in `updateIssue`
  • Loading branch information
leelasn authored Oct 29, 2024
2 parents 7110d58 + b30af78 commit 7d3b9a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linear-zapier",
"version": "4.4.1",
"version": "4.4.2",
"description": "Linear's Zapier integration",
"main": "index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/creates/updateIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const updateIssueRequest = async (z: ZObject, bundle: Bundle) => {
if (!bundle.inputData.issueIdToUpdate) {
throw new z.errors.HaltedError("You must specify the ID of the issue to update");
}
const priority = bundle.inputData.priority ? parseInt(bundle.inputData.priority) : 0;
const priority = bundle.inputData.priority ? parseInt(bundle.inputData.priority) : undefined;
const estimate = bundle.inputData.estimate ? parseInt(bundle.inputData.estimate) : undefined;
let labelIds: string[] | undefined = undefined;
if (bundle.inputData.labels && bundle.inputData.labels.length > 0) {
Expand Down

0 comments on commit 7d3b9a6

Please sign in to comment.