Skip to content

Commit

Permalink
🐛 fix: fix config update
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jun 13, 2023
1 parent 9bceee8 commit fee5441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProEditor/store/slices/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const configSlice: StateCreator<
internalUpdateConfig: (config, payload) => {
const { onConfigChange, componentAsset } = get();

const nextConfig = merge({}, get().config, config);
const nextConfig = { ...get().config, ...config };

set({ config: nextConfig }, false, payload);

Expand Down

0 comments on commit fee5441

Please sign in to comment.