Skip to content

Commit

Permalink
fix(ui): args dedupe crashing if an arg isn't a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 20, 2018
1 parent 20b6f4e commit 6649988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ async function run (id, context) {
const dedupedArgs = []
for (let i = args.length - 1; i >= 0; i--) {
const arg = args[i]
if (arg.indexOf('--') === 0) {
if (typeof arg === 'string' && arg.indexOf('--') === 0) {
if (dedupedArgs.indexOf(arg) === -1) {
dedupedArgs.push(arg)
} else {
Expand Down

0 comments on commit 6649988

Please sign in to comment.