Fix new eslint rules

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-12-28 12:52:21 +01:00
parent 44a88069db
commit e22fbb7277
15 changed files with 21 additions and 20 deletions

View File

@@ -53,7 +53,7 @@ export default {
if (state.comments[cardId] === undefined) {
Vue.set(state.comments, cardId, {
hasMore: comments.length > 0,
comments: [ ...comments ],
comments: [...comments],
})
} else {
const newComments = comments.filter((comment) => {

View File

@@ -312,7 +312,7 @@ export default new Vuex.Store({
async setConfig({ commit }, config) {
for (const key in config) {
try {
await axios.post(generateOcsUrl(`apps/deck/api/v1.0/config`) + key, {
await axios.post(generateOcsUrl('apps/deck/api/v1.0/config') + key, {
value: config[key],
})
commit('SET_CONFIG', { key, value: config[key] })