Revize c0cf1dbc
Přidáno uživatelem Václav Honzík před asi 2 roky(ů)
frontend/src/features/TrackingTool/trackingToolSlice.ts | ||
---|---|---|
47 | 47 |
name: 'trackingTool', |
48 | 48 |
initialState, |
49 | 49 |
reducers: { |
50 |
consumeErr: (state) => ({ ...state, lastErr: undefined }), |
|
51 |
setPrimaryIdx: (state, action) => ({
|
|
50 |
consumeErr: (state: TrackingToolState) => ({ ...state, lastErr: undefined }),
|
|
51 |
setPrimaryIdx: (state: TrackingToolState, action: any) => ({
|
|
52 | 52 |
...state, |
53 | 53 |
primaryPathIdx: action.payload, |
54 | 54 |
}), |
55 |
resetDialogApiCallSuccess: (state) => ({ |
|
55 |
resetDialogApiCallSuccess: (state: TrackingToolState) => ({
|
|
56 | 56 |
...state, |
57 | 57 |
dialogApiCallSuccess: false, |
58 | 58 |
}), |
59 |
clear: (state) => ({...initialState}) |
|
59 |
clear: (state: TrackingToolState) => ({...initialState})
|
|
60 | 60 |
}, |
61 | 61 |
extraReducers: (builder) => { |
62 | 62 |
builder.addCase(sendTextForProcessing.fulfilled, (state, action) => { |
Také k dispozici: Unified diff
coordinates fix