@@ -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()
});