mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
Fixed an issue where the debugMetareducers wouldn't be active even though debug was enabled in the config
This commit is contained in:
@@ -41,10 +41,7 @@ export function getBase() {
|
|||||||
|
|
||||||
export function getMetaReducers(config: GlobalConfig): Array<MetaReducer<AppState>> {
|
export function getMetaReducers(config: GlobalConfig): Array<MetaReducer<AppState>> {
|
||||||
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers, storeFreeze];
|
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers, storeFreeze];
|
||||||
if (config.debug) {
|
return config.debug ? [...metaReducers, ...debugMetaReducers] : metaReducers;
|
||||||
metaReducers.concat(debugMetaReducers)
|
|
||||||
}
|
|
||||||
return metaReducers;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEV_MODULES: any[] = [];
|
const DEV_MODULES: any[] = [];
|
||||||
|
Reference in New Issue
Block a user