mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 10:24:23 +01:00
fix(global_menu): layout switcher sometimes fails
This commit is contained in:
parent
a4b79a2dc9
commit
cb382c9537
@ -108,8 +108,8 @@ function DevelopmentOptions() {
|
||||
<FormDropdownDivider />
|
||||
<FormListItem
|
||||
icon={newLayoutEnabled ? "bx bx-layout" : "bx bxs-layout"}
|
||||
onClick={() => {
|
||||
toggleExperimentalFeature("new-layout", !newLayoutEnabled);
|
||||
onClick={async () => {
|
||||
await toggleExperimentalFeature("new-layout", !newLayoutEnabled);
|
||||
reloadFrontendApp();
|
||||
}}
|
||||
>{!newLayoutEnabled ? "Switch to new layout" : "Switch to old layout"}</FormListItem>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user