Skip to content

Commit

Permalink
conditionally render loading markup
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuraima Estevez committed Mar 29, 2024
1 parent 0c26884 commit 4a4b55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polaris-react/src/components/IndexTable/IndexTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function IndexTableBase({
exitActive: styles['LoadingContainer-exit-active'],
};

const loadingMarkup = (
const loadingMarkup = loading ? (
<CSSTransition
in={loading}
classNames={loadingTransitionClassNames}
Expand All @@ -571,7 +571,7 @@ function IndexTableBase({
</div>
</div>
</CSSTransition>
);
) : null;

const stickyTableClassNames = classNames(
styles.StickyTable,
Expand Down

0 comments on commit 4a4b55f

Please sign in to comment.