fix deletion of sdrs when there's no changes
This commit is contained in:
parent
5f7daba3b2
commit
b01792c3d2
@ -255,6 +255,8 @@ class SdrDeviceController(SdrFormControllerWithModal):
|
||||
config = Config.get()
|
||||
sdrs = config["sdrs"]
|
||||
del sdrs[self.device_id]
|
||||
# need to overwrite the existing key in the config since the layering won't capture the changes otherwise
|
||||
config["sdrs"] = sdrs
|
||||
config.store()
|
||||
return self.send_redirect("{}settings/sdr".format(self.get_document_root()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user