Skip to content

Commit

Permalink
feat: always get objects from DB when create-with-override
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Sep 22, 2023
1 parent 4e90edf commit 8c0f2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/saved_objects/service/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class SavedObjectsRepository {

let savedObjectWorkspaces = workspaces;

if (id && overwrite && workspaces) {
if (id && overwrite) {
try {
const currentItem = await this.get(type, id);
if (
Expand Down

0 comments on commit 8c0f2d5

Please sign in to comment.