fix(global_menu): layout switcher sometimes fails

This commit is contained in:
Elian Doran 2025-12-10 22:57:52 +02:00
parent a4b79a2dc9
commit cb382c9537
No known key found for this signature in database

View File

@ -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>