mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +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>> {
|
||||
const metaReducers: Array<MetaReducer<AppState>> = config.production ? appMetaReducers : [...appMetaReducers, storeFreeze];
|
||||
if (config.debug) {
|
||||
metaReducers.concat(debugMetaReducers)
|
||||
}
|
||||
return metaReducers;
|
||||
return config.debug ? [...metaReducers, ...debugMetaReducers] : metaReducers;
|
||||
}
|
||||
|
||||
const DEV_MODULES: any[] = [];
|
||||
|
Reference in New Issue
Block a user