@@ -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) => {
|
||||
|
||||
@@ -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] })
|
||||
|
||||
Reference in New Issue
Block a user