Skip to content

Commit

Permalink
resolve mr discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
timohuber committed Dec 16, 2024
1 parent cba0e69 commit 746193b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pool/web/view/layout/layout.ml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ module Tenant = struct
let%lwt head_script, body_script =
let open Settings.PageScript in
let%lwt page_scripts = find database_label in
let make_script = function
| None -> []
| Some s -> [ script (Unsafe.data (value s)) ]
let make_script =
CCOption.map_or ~default:[] (value %> Unsafe.data %> script %> CCList.return)
in
let head = make_script page_scripts.head in
let body = make_script page_scripts.body in
Expand Down

0 comments on commit 746193b

Please sign in to comment.