fix: report nested workspace conflicts
This commit is contained in:
@@ -254,7 +254,9 @@ export class WorkspaceRegistry {
|
||||
remote: unknown,
|
||||
prefix = "",
|
||||
): string[] {
|
||||
if (!base || !remote) return ["workspace.id"];
|
||||
if (base === undefined || remote === undefined) {
|
||||
return base === remote ? [] : [prefix || "workspace.id"];
|
||||
}
|
||||
if (Array.isArray(base) || Array.isArray(remote) || typeof base !== "object" || typeof remote !== "object") {
|
||||
return JSON.stringify(base) === JSON.stringify(remote) ? [] : [prefix];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user