Skip to content

Commit

Permalink
fix: A config reset should not reset the robot config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Sep 2, 2024
1 parent 02d7563 commit 28d674f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/lib/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ class Configuration {
reset() {
Logger.info("Restoring config to default settings.");

// A config reset should not reset the robot config
const robotSettings = this.settings.robot;

this.settings = structuredClone(DEFAULT_SETTINGS);
this.settings.robot = robotSettings;

this.persist();

Object.keys(this.settings).forEach(key => {
Expand Down

0 comments on commit 28d674f

Please sign in to comment.