Explorar el Código

reverted overwritten image list call

sunguroku hace 5 años
padre
commit
6b5646cef2
Se han modificado 1 ficheros con 8 adiciones y 6 borrados
  1. 8 6
      dashboard/src/components/image-selector/ImageSelector.tsx

+ 8 - 6
dashboard/src/components/image-selector/ImageSelector.tsx

@@ -64,12 +64,14 @@ export default class ImageSelector extends Component<PropsType, StateType> {
                   }
                 })
                 images.push(...newImg)
-                this.setState({
-                  images,
-                  registryId: registry.id,
-                  loading: false,
-                  error: false,
-                });
+                if (i == registries.length - 1) {
+                  this.setState({
+                    images,
+                    registryId: registry.id,
+                    loading: false,
+                    error: false,
+                  });
+                }
                 nextController()
               }
             });