remove some testing code accidentally committed
This commit is contained in:
1 parent
3275bc49d0
commit
5d9b8bf051
3 files changed
-17
No files matched your search
@@ -66,21 +66,6 @@ function App() {
|
|||||||
};
|
};
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const thing = async () => {
|
|
||||||
const action = await dispatch(
|
|
||||||
updateAppSettings({ authToken, settings: { apiBaseUrl: "test" } })
|
|
||||||
);
|
|
||||||
|
|
||||||
if (action.payload.success) {
|
|
||||||
console.log(action.payload.data);
|
|
||||||
} else {
|
|
||||||
console.log(action);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
thing();
|
|
||||||
}, [dispatch, authToken]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
|
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ export const updateAppSettings = createAsyncThunk(
|
|||||||
systemEmailAddress: settings.systemEmailAddress,
|
systemEmailAddress: settings.systemEmailAddress,
|
||||||
systemEmailPassword: settings.systemEmailPassword,
|
systemEmailPassword: settings.systemEmailPassword,
|
||||||
};
|
};
|
||||||
console.log(parsedSettings);
|
|
||||||
const res = await networkService.updateAppSettings({
|
const res = await networkService.updateAppSettings({
|
||||||
settings: parsedSettings,
|
settings: parsedSettings,
|
||||||
authToken,
|
authToken,
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ class NetworkService {
|
|||||||
this.setBaseUrl(baseURL);
|
this.setBaseUrl(baseURL);
|
||||||
this.unsubscribe = store.subscribe(() => {
|
this.unsubscribe = store.subscribe(() => {
|
||||||
const state = store.getState();
|
const state = store.getState();
|
||||||
console.log(state.settings.apiBaseUrl);
|
|
||||||
if (BASE_URL !== undefined) {
|
if (BASE_URL !== undefined) {
|
||||||
baseURL = BASE_URL;
|
baseURL = BASE_URL;
|
||||||
} else if (state?.settings?.apiBaseUrl ?? null) {
|
} else if (state?.settings?.apiBaseUrl ?? null) {
|
||||||
|
|||||||
Reference in new issue
Block a user