|
|
@@ -231,7 +231,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart, isPreviousVersion }) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- const getActionConfig = () => {
|
|
|
+ const currentActionConfig = useMemo(() => {
|
|
|
const actionConf = chart.git_action_config;
|
|
|
if (actionConf && actionConf.gitlab_integration_id) {
|
|
|
return {
|
|
|
@@ -244,7 +244,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart, isPreviousVersion }) => {
|
|
|
kind: "github",
|
|
|
...actionConf,
|
|
|
} as FullActionConfigType;
|
|
|
- };
|
|
|
+ }, [chart]);
|
|
|
|
|
|
return (
|
|
|
<Wrapper>
|
|
|
@@ -301,7 +301,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart, isPreviousVersion }) => {
|
|
|
<Heading>Buildpack Settings</Heading>
|
|
|
<BuildpackConfigSection
|
|
|
currentChart={chart}
|
|
|
- actionConfig={getActionConfig()}
|
|
|
+ actionConfig={currentActionConfig}
|
|
|
onChange={(buildConfig) => setBuildConfig(buildConfig)}
|
|
|
/>
|
|
|
</>
|