mirror of
https://github.com/ascribe/onion.git
synced 2025-01-03 10:25:08 +01:00
Use mergeOptions instead of Object.assign when merging sources to check for clashes
This commit is contained in:
parent
b126de5c2d
commit
b9e41d5cba
@ -7,6 +7,8 @@ import EditionActions from '../actions/edition_actions';
|
||||
import EditionSource from '../sources/edition_source';
|
||||
import CoaSource from '../sources/coa_source';
|
||||
|
||||
import { mergeOptions } from '../utils/general_utils';
|
||||
|
||||
|
||||
class EditionStore {
|
||||
constructor() {
|
||||
@ -20,7 +22,7 @@ class EditionStore {
|
||||
};
|
||||
|
||||
this.bindActions(EditionActions);
|
||||
this.registerAsync(Object.assign(EditionSource, CoaSource));
|
||||
this.registerAsync(mergeOptions(EditionSource, CoaSource));
|
||||
}
|
||||
|
||||
onFetchEdition(idToFetch) {
|
||||
|
Loading…
Reference in New Issue
Block a user