Fixed error when the active Config is deleted and rest only one to restore. (#16408)

This commit is contained in:
Julio Oliveira at Encora 2024-06-05 16:23:36 -03:00 committed by GitHub
parent 95e1f21324
commit 6affd88bcb

View File

@ -224,7 +224,7 @@ class ConfigRevisionRestoreView(ContentTypePermissionRequiredMixin, View):
for param in PARAMS:
params.append((
param.name,
current_config.data.get(param.name, None),
current_config.data.get(param.name, None) if current_config else None,
candidate_config.data.get(param.name, None)
))