Skip to content

Commit a71f767

Browse files
huchenleigithub-actions
andauthored
Fix default setting issue for first time install (#203)
* Fix default setting issue for first time install * Update test expectations [skip ci] --------- Co-authored-by: github-actions <[email protected]>
1 parent bd68617 commit a71f767

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed
-10 Bytes
Loading
12 Bytes
Loading

src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ const updateTheme = (e) => {
4040
};
4141
4242
const updateNodeSearchSetting = (e) => {
43-
nodeSearchEnabled.value = e.detail.value === "default";
43+
const settingValue = e.detail.value || "default";
44+
nodeSearchEnabled.value = settingValue === "default";
4445
};
4546
4647
const init = async () => {

0 commit comments

Comments
 (0)