From 4e90edf12ec9631b55eca29ddff3867708e688e3 Mon Sep 17 00:00:00 2001 From: SuZhou-Joe Date: Fri, 22 Sep 2023 14:14:56 +0800 Subject: [PATCH] feat: modify judgement Signed-off-by: SuZhou-Joe --- src/core/server/saved_objects/service/lib/repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts index 13eff64c0d67..ebd05cde6b83 100644 --- a/src/core/server/saved_objects/service/lib/repository.ts +++ b/src/core/server/saved_objects/service/lib/repository.ts @@ -669,7 +669,7 @@ export class SavedObjectsRepository { options.workspaces, transformedObject.workspaces ); - if (!filteredWorkspaces.length) { + if (filteredWorkspaces.length) { workspaceConflict = true; } }