refactor: only invoke the refreshed fleck

This commit is contained in:
cha0s 2022-02-28 01:22:59 -06:00
parent 72e7817812
commit f98ef90f6f

View File

@ -397,9 +397,9 @@ export default class Flecks {
// Replace the fleck.
this.registerFleck(fleck, M);
// Write config.
const defaultConfig = this.invoke('@flecks/core/config');
const defaultConfig = this.invokeFleck('@flecks/core/config', fleck);
this.config[fleck] = {
...defaultConfig[fleck],
...defaultConfig,
...this.config[fleck],
};
this.invokeFlat('@flecks/core/config/alter', this.config);