Skip to content

Commit e4d74e5

Browse files
committed
fix: Correct issue where potentially empty Sandbox is assigned to a deployment.
1 parent 6715511 commit e4d74e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.playeveryware.eos/Runtime/Core/Config/ProductConfig.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ protected override void OnReadCompleted()
155155
protected override void BeforeWrite()
156156
{
157157
// If there is one deployment, and one sandbox, then make sure they
158-
// are linked to each other.
158+
// are linked to each other if the sandbox is not empty.
159159
// But only do this if they have been newly added
160-
if (!_deploymentDefined && Environments.Deployments.Count ==1 && Environments.Sandboxes.Count == 1)
160+
if (!_deploymentDefined && Environments.Deployments.Count ==1 && Environments.Sandboxes.Count == 1 && !Environments.Sandboxes[0].Value.IsEmpty)
161161
{
162162
Environments.Deployments[0].Value.SandboxId = Environments.Sandboxes[0].Value;
163163
}

0 commit comments

Comments
 (0)