Skip to content

Commit ce960ef

Browse files
committed
quick fix
1 parent 098efd3 commit ce960ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/startup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
let CONFIG = {}
55
const immutableConfig = [ // Config paths that should NOT be saved locally
66
"client.version",
7+
"client.localConfigKey",
8+
"subjects",
79
"sheet.items"
810
]
911

@@ -55,7 +57,7 @@ function applyConfig() {
5557
const clientMenuOptions = document.querySelectorAll("#client-menu-dropdown > #client-options > button")
5658
clientMenuOptions.forEach((o) => { updateClientMenuOption(o) })
5759

58-
addSubjectSelectionOptions(Object.keys(CONFIG.subjects).filter(v => v!=='csSUBJECT:none'))
60+
addSubjectSelectionOptions(Object.keys(CONFIG.subjects || {}).filter(v => v!=='csSUBJECT:none'))
5961
const subjectSelector = document.getElementById('csSUBJECT-selector')
6062
if (CONFIG.sheet.editing.saveCurrentSubject) subjectSelector.value = CONFIG.sheet.currentSubject
6163
subjectSelector.onchange({currentTarget: subjectSelector})

0 commit comments

Comments
 (0)