Skip to content

Commit

Permalink
feat: remove null
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Apr 1, 2024
1 parent 42e0e05 commit 1b32316
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ describe('uiSettings/createOrUpgradeSavedConfig', function () {
},
{
id: version,
workspaces: null,
}
);
});
Expand Down Expand Up @@ -134,7 +133,6 @@ describe('uiSettings/createOrUpgradeSavedConfig', function () {
},
{
id: version,
workspaces: null,
}
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ export async function createOrUpgradeSavedConfig(
// create the new SavedConfig
await savedObjectsClient.create('config', attributes, {
id: version,
// config is a global object that should not belong to any of the workspaces
// declare it as null to prevent it being created as a workspace object
workspaces: null,
});
} catch (error) {
if (handleWriteErrors) {
Expand Down

0 comments on commit 1b32316

Please sign in to comment.