Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Commit

Permalink
fix for 'Couldn't update workflow' ; couldn't read property 'length' …
Browse files Browse the repository at this point in the history
…of null
  • Loading branch information
rosselm committed Jun 1, 2020
1 parent 7f74c28 commit 88edbc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/project/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ export const Command: project.CommandFactory = compose({
json: true
})
.then(response => {
if (response.body.version.match(/alfa|beta/).length > 0) return
let alfa_beta_match = response.body.version.match(/alfa|beta/)
if (alfa_beta_match && alfa_beta_match.length > 0) return

if (response.body.version > FILES.workflowConfig.version) {
Notification({
Expand Down

0 comments on commit 88edbc5

Please sign in to comment.