mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: cannot save autostart of http server config
autostart checkbox also wasn't checked when set previously Fixes https://github.com/logseq/db-test/issues/261. https://github.com/logseq/logseq/issues/10337 looks like its already fixed
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
(not= (util/safe-parse-int (or port 0))
|
||||
(util/safe-parse-int (or (:port server-state) 0))))
|
||||
changed? (or hp-changed? (->> [autostart (:autostart server-state)]
|
||||
(mapv #(cond-> % (nil? %) not))
|
||||
(mapv #(cond-> % (nil? %) boolean))
|
||||
(apply not=)))]
|
||||
|
||||
[:div.cp__server-configs-panel.pt-5
|
||||
@@ -104,7 +104,7 @@
|
||||
(ui/checkbox
|
||||
{:on-change #(let [checked (.-checked (.-target %))]
|
||||
(swap! *configs assoc :autostart checked))
|
||||
:value (not (false? autostart))})
|
||||
:checked (not (false? autostart))})
|
||||
|
||||
[:strong.select-none "Auto start server with the app launched"]]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user