diff --git a/app/gui/src/dashboard/layouts/AssetsTable.tsx b/app/gui/src/dashboard/layouts/AssetsTable.tsx index 6342cf11d40d..95c908e05520 100644 --- a/app/gui/src/dashboard/layouts/AssetsTable.tsx +++ b/app/gui/src/dashboard/layouts/AssetsTable.tsx @@ -107,6 +107,7 @@ import { AssetType, BackendType, getAssetPermissionName, + IS_OPENING_OR_OPENED, Plan, ProjectId, ProjectState, @@ -1726,6 +1727,11 @@ function AssetsTable(props: AssetsTableProps) { : displayItems.map((item) => { + const isOpenedByYou = openedProjects.some(({ id }) => item.item.id === id) + const isOpenedOnTheBackend = + item.item.projectState?.type != null ? + IS_OPENING_OR_OPENED[item.item.projectState.type] + : false return ( item.item.id === id)} + isOpened={isOpenedByYou || isOpenedOnTheBackend} visibility={visibilities.get(item.key)} columns={columns} id={item.item.id} diff --git a/app/gui/src/dashboard/layouts/Drive/assetsTableItemsHooks.tsx b/app/gui/src/dashboard/layouts/Drive/assetsTableItemsHooks.tsx index 3f5cafcb119d..18b7792824dc 100644 --- a/app/gui/src/dashboard/layouts/Drive/assetsTableItemsHooks.tsx +++ b/app/gui/src/dashboard/layouts/Drive/assetsTableItemsHooks.tsx @@ -43,9 +43,7 @@ export function useAsset(id: AssetId) { return useStore( ASSET_ITEMS_STORE, (store) => store.items.find((item) => item.id === id) ?? null, - { - unsafeEnableTransition: true, - }, + { unsafeEnableTransition: true }, ) }