Skip to content
Snippets Groups Projects
Commit b5584b53 authored by Arthur Ulfeldt's avatar Arthur Ulfeldt
Browse files

slight code cleanup

parent 73f64670
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@
:entity_type entity_type
:description description))
(api/check-500 (db/update! Table id, :visibility_type visibility_type))
(let [updated-table (Table :id id)
(let [updated-table (Table id)
visibility-changed? (not= (visible-state? (:visibility_type updated-table))
(visible-state? original-visibility-type))]
(when visibility-changed?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment