We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cd1f8 commit 078a43fCopy full SHA for 078a43f
components/server/src/code-sync/code-sync-service.ts
@@ -185,7 +185,8 @@ export class CodeSyncService {
185
value = await this.getTheiaCodeSyncResource(req.user.id);
186
version = 5;
187
} else if (resourceKey === SyncResource.Settings) {
188
- const settings = await this.userStorageResourcesDB.get(req.user.id, userSettingsUri);
+ let settings = await this.userStorageResourcesDB.get(req.user.id, userSettingsUri);
189
+ settings = settings === "" ? "{}" : settings;
190
value = JSON.stringify(<ISettingsSyncContent>{ settings });
191
version = 2;
192
}
0 commit comments