From 54dd5ef478f0eb969bf2784f1700272c83a201cc Mon Sep 17 00:00:00 2001
From: Fedor Katurov <gotham48@gmail.com>
Date: Tue, 1 Sep 2020 17:05:29 +0700
Subject: [PATCH] fixed is_loading display

---
 .../node/NodeImageSlideBlock/index.tsx        | 39 +++++++++----------
 1 file changed, 19 insertions(+), 20 deletions(-)

diff --git a/src/components/node/NodeImageSlideBlock/index.tsx b/src/components/node/NodeImageSlideBlock/index.tsx
index 07a18807..3f67b153 100644
--- a/src/components/node/NodeImageSlideBlock/index.tsx
+++ b/src/components/node/NodeImageSlideBlock/index.tsx
@@ -291,26 +291,25 @@ const NodeImageSlideBlock: FC<IProps> = ({
           onTouchStart={startDragging}
           ref={slide}
         >
-          {images.map((file, index) => (
-            <div
-              className={classNames(styles.image_wrap, {
-                is_active: index === current && loaded[index],
-              })}
-              ref={setRef(index)}
-              key={node.updated_at + file.id}
-            >
-              <img
-                className={styles.image}
-                src={getURL(file, PRESETS['1600'])}
-                alt=""
-                key={file.id}
-                onLoad={onImageLoad(index)}
-                style={{
-                  maxHeight: max_height,
-                }}
-              />
-            </div>
-          ))}
+          {!is_loading &&
+            images.map((file, index) => (
+              <div
+                className={classNames(styles.image_wrap, {
+                  is_active: index === current && loaded[index],
+                })}
+                ref={setRef(index)}
+                key={node.updated_at + file.id}
+              >
+                <img
+                  className={styles.image}
+                  src={getURL(file, PRESETS['1600'])}
+                  alt=""
+                  key={file.id}
+                  onLoad={onImageLoad(index)}
+                  style={{ maxHeight: max_height }}
+                />
+              </div>
+            ))}
         </div>
 
         {images.length > 1 && (