|
|
@@ -37,6 +37,13 @@ const SourceEditorDocker = ({
|
|
|
return image.replace(registry.url + "/", "");
|
|
|
}, [image, registry]);
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ if (sourceConfig.image_repo_uri) {
|
|
|
+ setImage(sourceConfig.image_repo_uri);
|
|
|
+ setTag(sourceConfig.image_tag);
|
|
|
+ }
|
|
|
+ }, [sourceConfig]);
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
const newSourceConfig: SourceConfig = {
|
|
|
...sourceConfig,
|
|
|
@@ -126,7 +133,7 @@ const _DockerRepositorySelector = ({
|
|
|
}
|
|
|
setIsLoading(false);
|
|
|
});
|
|
|
- }, []);
|
|
|
+ }, [currentImageUrl]);
|
|
|
|
|
|
const handleChange = (newRegistry: DockerRegistry) => {
|
|
|
onChange(newRegistry);
|