Skip to content

Commit 683de68

Browse files
committed
omit welcome tabs
1 parent 1e4c46b commit 683de68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-workspaces/src/stores/workspaces-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function saveWorkspaceStateToUserData(
5151
try {
5252
// Transform the state to the format we want to save
5353
const stateToSave: WorkspacesStateData = {
54-
tabs: state.tabs,
54+
tabs: state.tabs.filter((tab) => tab.type !== 'Welcome'), // Don't save welcome tabs
5555
activeTabId: state.activeTabId,
5656
timestamp: Date.now(),
5757
};

0 commit comments

Comments
 (0)