add pagespeed to intialstate and handler in settingsslice
This commit is contained in:
1 parent
b493b5e0e5
commit
85c3a16f41
2 files changed
+7
-8
No files matched your search
@@ -6,6 +6,7 @@ const initialState = {
|
||||
apiBaseUrl: "",
|
||||
logLevel: "debug",
|
||||
language: "",
|
||||
pagespeedApiKey: "",
|
||||
};
|
||||
|
||||
export const getAppSettings = createAsyncThunk(
|
||||
@@ -57,6 +58,7 @@ const handleGetSettingsFulfilled = (state, action) => {
|
||||
state.apiBaseUrl = action.payload.data.apiBaseUrl;
|
||||
state.logLevel = action.payload.data.logLevel;
|
||||
state.language = action.payload.data.language;
|
||||
state.pagespeedApiKey = action.payload.data.pagespeedApiKey;
|
||||
};
|
||||
const handleGetSettingsRejected = (state, action) => {
|
||||
state.isLoading = false;
|
||||
|
||||
Reference in new issue
Block a user