Skip to content

Commit a1b0093

Browse files
committed
ugh -1 not 0
1 parent cba3c51 commit a1b0093

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/screens/Comments/Dialog

1 file changed

+2
-2
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/screens/Comments/Dialog/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,12 +416,12 @@ const Replies = ({ replies, repliesRenderedCallback }) => {
416416
* If replies are loaded, do nothing and wait for next animation
417417
* */
418418
React.useEffect(() => {
419-
if (!replies.length || T > 0) {
419+
if (!replies.length) {
420420
// If the dialog is already open without any replies,
421421
// just skip all of the animations for opening transitions
422422
repliesController.set({ opacity: 1, height: 'auto' });
423423
setStepInTimeline(2);
424-
} else if (!repliesAlreadyLoadedOnFirstRender.current) {
424+
} else if (!repliesAlreadyLoadedOnFirstRender.current && T === -1) {
425425
skeletonController.set({ height: SKELETON_HEIGHT, opacity: 1 });
426426
setStepInTimeline(0);
427427
}

0 commit comments

Comments
 (0)