mirror of
https://github.com/directus/directus.git
synced 2026-02-17 13:01:21 -05:00
Show error on hydration problem
This commit is contained in:
@@ -11,8 +11,10 @@ export const useSettingsStore = createStore({
|
||||
}),
|
||||
actions: {
|
||||
async hydrate() {
|
||||
const response = await api.get(`/settings`, { params: { fields: ['*.*'] } });
|
||||
this.state.settings = response.data.data;
|
||||
try {
|
||||
const response = await api.get(`/settings`, { params: { fields: ['*.*'] } });
|
||||
this.state.settings = response.data.data;
|
||||
} catch {}
|
||||
},
|
||||
|
||||
async dehydrate() {
|
||||
|
||||
Reference in New Issue
Block a user