Skip to content

Commit 0122c68

Browse files
committed
fix: add observer
1 parent fc9dceb commit 0122c68

File tree

1 file changed

+2
-2
lines changed
  • packages/pluggableWidgets/datagrid-web/src/components

1 file changed

+2
-2
lines changed

packages/pluggableWidgets/datagrid-web/src/components/GridBody.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { RowSkeletonLoader } from "./loader/RowSkeletonLoader";
1313
import { SpinnerLoader } from "./loader/SpinnerLoader";
1414

15-
export function GridBody(props: PropsWithChildren): ReactElement {
15+
export const GridBody = observer(function GridBody(props: PropsWithChildren): ReactElement {
1616
const { children } = props;
1717
const { bodySize, containerRef, isInfinite, handleScroll } = useBodyScroll();
1818

@@ -27,7 +27,7 @@ export function GridBody(props: PropsWithChildren): ReactElement {
2727
<ContentGuard>{children}</ContentGuard>
2828
</div>
2929
);
30-
}
30+
});
3131

3232
const ContentGuard = observer(function ContentGuard(props: PropsWithChildren): ReactNode {
3333
const loaderVM = useLoaderViewModel();

0 commit comments

Comments
 (0)