Skip to content

Commit

Permalink
Removed key attributes from the asset view.
Browse files Browse the repository at this point in the history
These were causing the asset view to be remounted when cycling through
assets and was causing a flickering.
  • Loading branch information
ashleydavis committed Aug 4, 2024
1 parent a7c5185 commit c98eba7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/user-interface/src/components/gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,8 @@ export function Gallery({ targetRowHeight, getHeadings }: IGalleryProps) {
{selectedItemId &&
<GalleryItemContextProvider
assetId={selectedItemId}
key={selectedItemId}
>
<AssetView
key={selectedItemId}
open={openAssetView}
onClose={() => {
setOpenAssetView(false);
Expand Down

0 comments on commit c98eba7

Please sign in to comment.