blob: 542442296b65a71127a6fc080c054188b39d1bcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import types from '../../types'
const samplernnInitialState = {
loading: false,
error: null,
datasets: [],
results: [],
}
const samplernnReducer = (state = samplernnInitialState, action) => {
switch(action.type) {
case types.socket.connect:
return {
...state,
}
case types.task.task_begin:
return {
...state,
}
case types.task.task_finish:
if (state.runner[action.task.processor].task.uuid !== action.task.uuid) {
return state
}
return {
...state,
}
case types.folder.index:
console.log(action)
return
default:
return state
}
}
export default samplernnReducer
|