From 7747f5c824ad359ab22852f661615199ddde0932 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <p.gawron@atcomp.pl> Date: Thu, 25 Apr 2024 12:55:57 +0200 Subject: [PATCH] load configuration sooner --- src/redux/root/init.thunks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redux/root/init.thunks.ts b/src/redux/root/init.thunks.ts index e28be3dc..6c0da82d 100644 --- a/src/redux/root/init.thunks.ts +++ b/src/redux/root/init.thunks.ts @@ -58,6 +58,7 @@ export const fetchInitialAppData = createAsyncThunk< /** Fetch all data required for rendering map */ await Promise.all([ + dispatch(getConfiguration()), dispatch(getConfigurationOptions()), dispatch(getProjectById(PROJECT_ID)), dispatch(getAllBackgroundsByProjectId(PROJECT_ID)), @@ -78,7 +79,6 @@ export const fetchInitialAppData = createAsyncThunk< // Fetch data needed for export dispatch(getStatisticsById(PROJECT_ID)); - dispatch(getConfiguration()); // Fetch plugins list dispatch(getAllPlugins()); -- GitLab