Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(Resource-status/Details): Fix Details panel not being refreshed w…
Browse files Browse the repository at this point in the history
…hen a Resource is selected #10353
  • Loading branch information
bdauria authored Oct 21, 2021
1 parent ccb8638 commit a6884e0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
remove,
difference,
uniq,
prop,
} from 'ramda';

import { Box, Grid } from '@material-ui/core';
Expand Down Expand Up @@ -110,6 +111,7 @@ const SortableCards = ({ panelWidth, details }: Props): JSX.Element => {
({ shouldBeDisplayed }) => shouldBeDisplayed,
cards,
);

const RootComponent = ({ children }: RootComponentProps): JSX.Element => (
<Grid container spacing={1} style={{ width: panelWidth }}>
{children}
Expand Down Expand Up @@ -141,7 +143,13 @@ const SortableCards = ({ panelWidth, details }: Props): JSX.Element => {
/>
</Box>
),
memoProps: [defaultDetailsCardsLayout, panelWidth, expandedCards],
memoProps: [
defaultDetailsCardsLayout,
panelWidth,
expandedCards,
details,
displayedCards.map(prop('id')),
],
});
};

Expand Down

0 comments on commit a6884e0

Please sign in to comment.