Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 committed Jun 29, 2023
1 parent 5a853a4 commit 4e1b50a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { combineReducers } from '@reduxjs/toolkit'
import { Engine } from '@dcl/ecs'

import dataLayerReducer, { initialState as dataLayerState, getDataLayerInterface } from '../../data-layer'
import sdkReducer, { getEngines, initialState as sdkState } from '../'
import sdkReducer, { selectEngines, initialState as sdkState } from '../'
import { connectStream } from './connect-stream'
import * as connectStreamEngine from '../../../lib/sdk/connect-stream'
import { call } from 'redux-saga/effects'
Expand All @@ -15,7 +15,7 @@ describe('SDK Engines crdt stream', () => {
await expectSaga(connectStream)
.withReducer(combineReducers({ dataLayer: dataLayerReducer, sdk: sdkReducer }))
.withState({ dataLayer: dataLayerState, sdk: sdkState })
.select(getEngines)
.select(selectEngines)
.call(getDataLayerInterface)
.run()
expect(spy).not.toBeCalled()
Expand All @@ -37,7 +37,7 @@ describe('SDK Engines crdt stream', () => {
.withReducer(combineReducers({ dataLayer: dataLayerReducer, sdk: sdkReducer }))
.provide([[call(getDataLayerInterface), state.dataLayer.dataLayer]])
.withState(state)
.select(getEngines)
.select(selectEngines)
.call(getDataLayerInterface)
.run()
expect(spy).toBeCalledTimes(2)
Expand Down
4 changes: 2 additions & 2 deletions packages/@dcl/inspector/src/redux/sdk/sagas/connect-stream.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { call, select } from 'redux-saga/effects'

import { getEngines } from '..'
import { selectEngines } from '..'
import { connectCrdtToEngine } from '../../../lib/sdk/connect-stream'
import { IDataLayer, getDataLayerInterface } from '../../data-layer'

export function* connectStream() {
const engines: ReturnType<typeof getEngines> = yield select(getEngines)
const engines: ReturnType<typeof selectEngines> = yield select(selectEngines)
const dataLayer: IDataLayer = yield call(getDataLayerInterface)

if (!dataLayer || !engines.inspector || !engines.renderer) return
Expand Down

0 comments on commit 4e1b50a

Please sign in to comment.