Skip to content

Commit

Permalink
fix: reset to saved or factory settings
Browse files Browse the repository at this point in the history
  • Loading branch information
basilgood authored and cristinecula committed Sep 24, 2024
1 parent 32ed217 commit 692a81e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/settings/drivers/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default ({ prefix = '', get$, post$ } = {}) => {
}
};
return {
write: async (settingsId, settings) => {
write: async (settingsId, settings = {}) => {
const key = prefix + settingsId;
try {
await post$(key, settings);
Expand Down
2 changes: 1 addition & 1 deletion lib/settings/use-saved-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default (settingsId, settings, setSettings, onReset) => {
}
onReset?.();
},
[onReset]
[onReset],
),
hasChanges: settings != null,
};
Expand Down

0 comments on commit 692a81e

Please sign in to comment.