blob: 10135a584d2846ad4910d33688faacd060d7d8c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import types from '../../types'
import datasetReducer from '../../dataset/dataset.reducer'
const pix2pixInitialState = {
loading: true,
progress: { i: 0, n: 0 },
error: null,
folder_id: 0,
data: null,
}
const pix2pixReducer = (state = pix2pixInitialState, action) => {
if (action.data && action.data.module === 'pix2pix') {
state = datasetReducer(state, action)
}
switch (action.type) {
default:
return state
}
}
export default pix2pixReducer
|