Skip to content

Commit

Permalink
Fix secondary provider removal
Browse files Browse the repository at this point in the history
  • Loading branch information
AjBreidenbach committed Jan 4, 2024
1 parent c1ac17a commit 6411130
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ export function deleteEnvironmentInstance({templateName, environmentName, depend
return function(accumulator) {
visitMutation('deleteEnvironmentInstance')
const patch = accumulator['DeploymentEnvironment'][environmentName]
if(delete patch.instances[templateName]) {
if(patch.instances[templateName]) {
delete patch.instances[templateName]
if(dependentName) {
const dependent = patch.instances[dependentName]
const dependency = dependent?.dependencies?.find(dep => dep.name == dependentRequirement)
Expand Down

0 comments on commit 6411130

Please sign in to comment.