Skip to content

Commit 3510485

Browse files
authored
Merge pull request #2836 from codefori/fix/globalStatePrefix
Correctly reset insternal storage prefix after disconnection
2 parents 467c78d + 55dbd58 commit 3510485

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/configuration/storage/ConnectionStorage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BaseStorage } from "./BaseStorage";
2-
import { PathContent, DeploymentPath, DebugCommands } from "./CodeForIStorage";
2+
import { DebugCommands, DeploymentPath, PathContent } from "./CodeForIStorage";
33

44
const PREVIOUS_CUR_LIBS_KEY = `prevCurLibs`;
55
const LAST_PROFILE_KEY = `currentProfile`;
@@ -34,7 +34,7 @@ export class ConnectionStorage {
3434

3535
setConnectionName(connectionName: string) {
3636
this.connectionName = connectionName;
37-
this.internalStorage.setUniqueKeyPrefix(`settings-${connectionName}`);
37+
this.internalStorage.setUniqueKeyPrefix(connectionName ? `settings-${connectionName}` : '');
3838
}
3939

4040
getSourceList() {

0 commit comments

Comments
 (0)