Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit e6af88f

Browse files
committed
fix global settings rendering
1 parent 6aee988 commit e6af88f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/settings/handlers/automation/FormulaJSFolderHandler.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ export class FormulaJSFolderHandler extends AbstractSettingsHandler {
66
settingTitle: string = 'Select the source of your formula JS files';
77
handle(settingHandlerResponse: SettingHandlerResponse): SettingHandlerResponse {
88
const { settingsManager, containerEl, view, local } = settingHandlerResponse;
9-
if (view.diskConfig.yaml.config.enable_js_formulas) {
9+
const isJSFormulasEnabled = local ?
10+
view.diskConfig.yaml.config.enable_js_formulas :
11+
settingsManager.plugin.settings.local_settings.enable_js_formulas;
12+
if (isJSFormulasEnabled) {
1013
const formula_folder_promise = async (value: string): Promise<void> => {
1114
if (local) {
1215
// update settings

0 commit comments

Comments
 (0)