Skip to content

Commit e7a1872

Browse files
committedNov 3, 2021
more concise ternary
1 parent f89aab5 commit e7a1872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/app/src/runs/RunsEmpty.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const configFilePath = computed(() => props.gql.configFilePath)
8585
const firstRecordKey = computed(() => {
8686
const allRecordKeys = props.gql.cloudProject?.recordKeys
8787
88-
return allRecordKeys?.length ? allRecordKeys[0] : '<record-key>'
88+
return allRecordKeys?.[0] ?? '<record-key>'
8989
})
9090
const recordCommand = computed(() => {
9191
return `cypress run --record --key ${firstRecordKey.value}`

0 commit comments

Comments
 (0)