@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.esm.js +9 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -30870,7 +30870,15 @@ var DashboardStageInner = function DashboardStageInner(_ref2) {
|
|
|
30870
30870
|
return tab.id === workspaceItem.id;
|
|
30871
30871
|
});
|
|
30872
30872
|
if (existingTab) {
|
|
30873
|
-
//
|
|
30873
|
+
// Sync fresh workspace data to existing tab
|
|
30874
|
+
setOpenTabs(function (prev) {
|
|
30875
|
+
return prev.map(function (tab) {
|
|
30876
|
+
return tab.id === existingTab.id ? _objectSpread(_objectSpread({}, tab), {}, {
|
|
30877
|
+
name: workspaceItem.name || "Untitled",
|
|
30878
|
+
workspace: workspaceItem
|
|
30879
|
+
}) : tab;
|
|
30880
|
+
});
|
|
30881
|
+
});
|
|
30874
30882
|
setActiveTabId(existingTab.id);
|
|
30875
30883
|
} else {
|
|
30876
30884
|
// Open new tab
|