Skip to content

Commit

Permalink
Small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Oct 29, 2024
1 parent fc249b2 commit c8e94cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-grid-layout/grid/grid_row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const GridRow = forwardRef<
if (oldRowData.isCollapsed !== newRowData.isCollapsed)
setIsCollapsed(newRowData.isCollapsed);
if (
oldRowData.panelIds.length !== newRowData.panelIds.length ||
!(
oldRowData.panelIds.every((p) => newRowData.panelIds.includes(p)) &&
newRowData.panelIds.every((p) => oldRowData.panelIds.includes(p))
Expand Down

0 comments on commit c8e94cc

Please sign in to comment.