From a72a9fb501dbad669fbffd51207cf5de893889ce Mon Sep 17 00:00:00 2001 From: les Date: Tue, 28 Sep 2021 12:55:54 +0200 Subject: [PATCH] do not prepare meta/announcements on firstrun --- store/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/store/index.js b/store/index.js index 851348fb..044eb94f 100644 --- a/store/index.js +++ b/store/index.js @@ -50,8 +50,10 @@ export const actions = { // we use it to get configuration from db, set locale, etc... nuxtServerInit ({ commit }, { req }) { commit('setSettings', req.settings) - commit('setAnnouncements', req.announcements) - commit('update', req.meta) + if (!req.firstrun) { + commit('setAnnouncements', req.announcements) + commit('update', req.meta) + } }, async updateAnnouncements ({ commit }) { const announcements = await this.$axios.$get('/announcements')