Skip to content

Commit

Permalink
fix(FOROME-1479): Define scenario fix (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyUstyumenko authored Aug 15, 2022
1 parent 0c3bd37 commit 4f627c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ class WizardStore {
)

reaction(
() => datasetStore.datasetName,
() => {
this.defineAndSetNewScenario()
() => datasetStore.dsInfo.isLoading,
isLoading => {
!isLoading && this.defineAndSetNewScenario()
},
)
}
Expand All @@ -105,6 +105,7 @@ class WizardStore {

public defineAndSetNewScenario() {
this.prevWizardScenario = []

if (datasetStore.isXL && this.startWithOption === ExploreKeys.Genome) {
this.setScenario(wizardScenarios.XlWholeGenome)
} else if (
Expand Down
2 changes: 1 addition & 1 deletion src/store/dataset/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DsInfoAsyncStore } from './ds-info.async.store'

const CHECK_WORD_FOR_DELETE_DATSET = 'test'
export class DatasetStore {
private readonly dsInfo = new DsInfoAsyncStore()
public readonly dsInfo = new DsInfoAsyncStore()

datasetName = ''

Expand Down

0 comments on commit 4f627c9

Please sign in to comment.