Skip to content

Commit 6649988

Browse files
author
Guillaume Chau
committed
fix(ui): args dedupe crashing if an arg isn't a string
1 parent 20b6f4e commit 6649988

File tree

1 file changed

+1
-1
lines changed
  • packages/@vue/cli-ui/src/graphql-api/connectors

1 file changed

+1
-1
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async function run (id, context) {
252252
const dedupedArgs = []
253253
for (let i = args.length - 1; i >= 0; i--) {
254254
const arg = args[i]
255-
if (arg.indexOf('--') === 0) {
255+
if (typeof arg === 'string' && arg.indexOf('--') === 0) {
256256
if (dedupedArgs.indexOf(arg) === -1) {
257257
dedupedArgs.push(arg)
258258
} else {

0 commit comments

Comments
 (0)