mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
fix audit log toggle
This commit is contained in:
1 parent
aeec0cbf8e
commit
82e3cb8a4d
1 file changed
+5
-1
@@ -18,7 +18,11 @@ class PersonalizationSettingsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@account_config.value = @account_config.value.compact_blank if @account_config.value.is_a?(Hash)
|
||||
if @account_config.value.is_a?(Hash)
|
||||
@account_config.value = @account_config.value.reject do |_, v|
|
||||
v.blank? && v != false
|
||||
end
|
||||
end
|
||||
|
||||
if @account_config.value != false && @account_config.value.blank?
|
||||
@account_config.destroy!
|
||||
|
||||
Reference in new issue
Block a user