Revize d281786c
Přidáno uživatelem Fantič před asi 2 roky(ů)
src/stores/reducers/itemSlice.ts | ||
---|---|---|
13 | 13 |
|
14 | 14 |
const initialState: ItemViewState = { |
15 | 15 |
item: {} as Item, |
16 |
selectedConcordance: 0, |
|
17 | 16 |
concordances: [], |
18 | 17 |
notes: [], |
19 | 18 |
lastError: "", |
... | ... | |
25 | 24 |
name: "item", |
26 | 25 |
initialState: initialState, |
27 | 26 |
reducers: { |
28 |
setSelectedConcordance: (state, action) => { |
|
29 |
state.selectedConcordance = action.payload.selectedConcordance; |
|
30 |
}, |
|
31 | 27 |
setConcordances: (state, action) => { |
32 | 28 |
state.concordances = action.payload.concordances; |
33 | 29 |
} |
Také k dispozici: Unified diff
re #10454: ItemView: SetConcordance refactor