Skip to content

Commit b10fb67

Browse files
Fixed error when the active Config is deleted and rest only one to restore. (netbox-community#16408)
1 parent c27cb6f commit b10fb67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def get(self, request, pk):
224224
for param in PARAMS:
225225
params.append((
226226
param.name,
227-
current_config.data.get(param.name, None),
227+
current_config.data.get(param.name, None) if current_config else None,
228228
candidate_config.data.get(param.name, None)
229229
))
230230

0 commit comments

Comments
 (0)