diff --git a/src/devices_models/device_constructors/branch_constructor.jl b/src/devices_models/device_constructors/branch_constructor.jl index 8a5354539..54c968959 100644 --- a/src/devices_models/device_constructors/branch_constructor.jl +++ b/src/devices_models/device_constructors/branch_constructor.jl @@ -10,8 +10,8 @@ function construct_device!( NetworkModel{AreaBalancePowerModel}, }, ) where {T <: PSY.ACBranch} + devices = get_available_components(model, sys) if has_subnetworks(network_model) - devices = get_available_components(model, sys) if get_use_slacks(model) add_variables!(