We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e4a4d6 commit 5a1db22Copy full SHA for 5a1db22
src/store/modules/tiles.js
@@ -35,13 +35,14 @@ const actions = {
35
},
36
37
getSuggestions({ state, rootState, rootGetters, commit }) {
38
+ state.list = null;
39
axios
40
.get(
41
`${rootState.LANGUAGETOOL_ENDPOINT_ROOT}/suggestions?` +
42
rootGetters.languageWithAccessToken.join(",")
43
)
44
.then(({ data }) => {
- state.list = (state.list || []).concat(data.suggestions);
45
+ state.list = data.suggestions;
46
commit("setFirstAsActive");
47
});
48
0 commit comments