@trops/dash-core 0.1.324 → 0.1.325

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -51696,12 +51696,19 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
51696
51696
  if (!workspaceSelected) return;
51697
51697
  var tempWorkspace = deepCopy(currentWorkspaceRef.current || workspaceSelected);
51698
51698
  tempWorkspace["menuId"] = Number(menuId);
51699
+ if (currentWorkspaceRef.current) {
51700
+ currentWorkspaceRef.current.menuId = Number(menuId);
51701
+ }
51699
51702
  updateTabWorkspace(tempWorkspace);
51700
51703
  }
51701
51704
  function handleWorkspaceThemeChange(themeKey) {
51702
51705
  if (!workspaceSelected) return;
51703
51706
  var tempWorkspace = deepCopy(currentWorkspaceRef.current || workspaceSelected);
51704
51707
  tempWorkspace["themeKey"] = themeKey || null;
51708
+ // Sync themeKey to the LayoutBuilder ref so save picks it up
51709
+ if (currentWorkspaceRef.current) {
51710
+ currentWorkspaceRef.current.themeKey = themeKey || null;
51711
+ }
51705
51712
  updateTabWorkspace(tempWorkspace);
51706
51713
  }
51707
51714
  function handleScrollableChange(enabled) {