mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-06 22:00:09 +00:00
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
/**
|
|
* This middleware makes sure the settings are fetched and available in the store.
|
|
*/
|
|
export default async function ({ store, req }) {
|
|
// If nuxt generate, pass this middleware
|
|
if (process.server && !req) return
|
|
|
|
if (!store.getters['settings/isLoaded']) {
|
|
await store.dispatch('settings/load')
|
|
}
|
|
}
|