Skip to content

Commit

Permalink
correctly check if command is studio or not
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Aug 29, 2022
1 parent 5370f8b commit d52d637
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/reporter/src/attempts/attempt-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import Agent, { AgentProps } from '../agents/agent-model'
import Command, { CommandProps } from '../commands/command-model'
import Err from '../errors/err-model'
import Route, { RouteProps } from '../routes/route-model'
import Test, { UpdatableTestProps, TestProps, TestState } from '../test/test-model'
import Test, { UpdatableTestProps, TestProps } from '../test/test-model'
import type { TestState } from '@packages/types'
import Hook, { HookName } from '../hooks/hook-model'
import { FileDetails } from '@packages/types'
import { LogProps } from '../runnables/runnables-store'
Expand Down Expand Up @@ -91,7 +92,9 @@ export default class Attempt {
}

@computed get studioIsNotEmpty () {
return _.some(this.hooks, (hook) => hook.isStudio && hook.commands.length)
return this.hooks.some((hook) => {
return hook.isStudio && hook.commands.some((cmd) => cmd.isStudio)
})
}

addLog = (props: LogProps) => {
Expand Down

0 comments on commit d52d637

Please sign in to comment.