From 114bf7ec38073c123130c844de480c0cff8bae0f Mon Sep 17 00:00:00 2001 From: Gondragos Date: Tue, 15 Oct 2024 22:41:03 +0100 Subject: [PATCH] fix: LEAP-1586: Fix CommentsOverlay display without preloading image functionality --- .../src/components/InteractiveOverlays/CommentsOverlay.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/libs/editor/src/components/InteractiveOverlays/CommentsOverlay.tsx b/web/libs/editor/src/components/InteractiveOverlays/CommentsOverlay.tsx index 0d462aee9aed..d31e1de9ddf3 100644 --- a/web/libs/editor/src/components/InteractiveOverlays/CommentsOverlay.tsx +++ b/web/libs/editor/src/components/InteractiveOverlays/CommentsOverlay.tsx @@ -242,9 +242,7 @@ const WhenTagsReady: React.FC = memo( if ( !Array.from(tags.values()).every((tag) => { if (!isAlive(tag)) return false; - // Unfortunately, for some reason image do not use `isReady` in the way it was planed to do, so we need to check it separately - // @ts-ignore - if (tag.imageIsLoaded === false) return false; + return tag?.isReady ?? true; }, true) ) {