Fix multiple issues with global config

- global config saved outside the app errored and had no effect on config
- global config saved in app, saved invalid state and invalid file
- removed outdated global error handling on alter-file
- Also fix validations for repo config
This commit is contained in:
Gabriel Horner
2023-03-22 23:40:08 -04:00
committed by Andelf
parent 07c27b0f59
commit 89ba13d5ac
5 changed files with 44 additions and 54 deletions

View File

@@ -57,7 +57,7 @@
(str (string/trim value) "\n")
{:re-render-root? true})))
;; global file
(file-handler/alter-global-file path (str (string/trim value) "\n"))))
(file-handler/alter-global-file path (str (string/trim value) "\n") {})))
:else
nil))))))