@trops/dash-core 0.1.37 → 0.1.38

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.js CHANGED
@@ -30889,7 +30889,15 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
30889
30889
  return tab.id === workspaceItem.id;
30890
30890
  });
30891
30891
  if (existingTab) {
30892
- // Tab already open just switch to it
30892
+ // Sync fresh workspace data to existing tab
30893
+ setOpenTabs(function (prev) {
30894
+ return prev.map(function (tab) {
30895
+ return tab.id === existingTab.id ? _objectSpread(_objectSpread({}, tab), {}, {
30896
+ name: workspaceItem.name || "Untitled",
30897
+ workspace: workspaceItem
30898
+ }) : tab;
30899
+ });
30900
+ });
30893
30901
  setActiveTabId(existingTab.id);
30894
30902
  } else {
30895
30903
  // Open new tab