Skip to content

Commit

Permalink
馃悰 fix: plugins with multiple settings cannot be correctly configured
Browse files Browse the repository at this point in the history
  • Loading branch information
YangHanlin committed Apr 11, 2024
1 parent b7768f9 commit e6ab2e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/PluginSettings/index.tsx
Expand Up @@ -74,7 +74,7 @@ const PluginSettingsConfig = memo<PluginSettingsConfigProps>(({ schema, id }) =>
maximum={item.maximum}
minimum={item.minimum}
onChange={(value) => {
updatePluginSettings(id, { [item.name]: value });
updatePluginSettings(id, { ...pluginSetting, [item.name]: value });
}}
type={item.type as any}
/>
Expand Down

0 comments on commit e6ab2e7

Please sign in to comment.