Skip to content

Commit

Permalink
Update connection's configuration before saving it
Browse files Browse the repository at this point in the history
Signed-off-by: Seb Julliand <sebjulliand@gmail.com>
  • Loading branch information
sebjulliand committed May 20, 2024
1 parent 88681a6 commit 79dee12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/Instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export default class Instance {
}

async setConfig(newConfig: ConnectionConfiguration.Parameters) {
if (this.connection) {
this.connection.config = newConfig;
}
await ConnectionConfiguration.update(newConfig);
if (this.connection) this.connection.config = newConfig;
}

getConfig() {
Expand Down

0 comments on commit 79dee12

Please sign in to comment.