Skip to content

Commit

Permalink
fix(FOROME-1659): Fixing double statunit request (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyUstyumenko authored Oct 12, 2022
1 parent 0f91bb7 commit d055599
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ReactElement } from 'react'
import { observer } from 'mobx-react-lite'

import { FuncStepTypesEnum } from '@core/enum/func-step-types-enum'
import dtreeStore from '@store/dtree'
import { IStepData } from '@store/dtree/dtree.store'
import stepStore, { ActiveStepOptions } from '@store/dtree/step.store'
import { Icon } from '@ui/icon'
Expand Down Expand Up @@ -35,6 +36,7 @@ export const ContentItemHeader = observer(
!stepType

const handleModals = () => {
dtreeStore.stat.abortController?.abort()
stepStore.makeStepActive({
index: stepNo - 1,
option: ActiveStepOptions.StartedVariants,
Expand Down
2 changes: 1 addition & 1 deletion src/store/common/base-async-data.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export abstract class BaseAsyncDataStore<Data, Query> {
private _data: Data | undefined
private lastOnlineQuery: Query | undefined

private abortController: AbortController | null = null
public abortController: AbortController | null = null
private readonly cache: Map<string, { lastUpdate: number; data: Data }> =
new Map()

Expand Down

0 comments on commit d055599

Please sign in to comment.