Skip to content

Commit bd053b5

Browse files
FIX (workspaces): Fix switch between workspaces
1 parent 431e986 commit bd053b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/widgets/main/MainScreenComponent.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,27 +317,31 @@ export const MainScreenComponent = () => {
317317
contentHeight={contentHeight}
318318
workspace={selectedWorkspace}
319319
isCanManageNotifiers={isCanManageDBs}
320+
key={`notifiers-${selectedWorkspace.id}`}
320321
/>
321322
)}
322323
{selectedTab === 'storages' && selectedWorkspace && (
323324
<StoragesComponent
324325
contentHeight={contentHeight}
325326
workspace={selectedWorkspace}
326327
isCanManageStorages={isCanManageDBs}
328+
key={`storages-${selectedWorkspace.id}`}
327329
/>
328330
)}
329331
{selectedTab === 'databases' && selectedWorkspace && (
330332
<DatabasesComponent
331333
contentHeight={contentHeight}
332334
workspace={selectedWorkspace}
333335
isCanManageDBs={isCanManageDBs}
336+
key={`databases-${selectedWorkspace.id}`}
334337
/>
335338
)}
336339
{selectedTab === 'settings' && selectedWorkspace && user && (
337340
<WorkspaceSettingsComponent
338341
workspaceResponse={selectedWorkspace}
339342
contentHeight={contentHeight}
340343
user={user}
344+
key={`settings-${selectedWorkspace.id}`}
341345
/>
342346
)}
343347
</>

0 commit comments

Comments
 (0)