Skip to content

Commit cbec1a3

Browse files
jordanhaileycorneliusludmann
authored andcommitted
restricting call to updateHostValue on type change, only runs if host has not been modified
1 parent 96808e0 commit cbec1a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/dashboard/src/settings/Integrations.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ export function GitIntegrationModal(props: ({
466466

467467
useEffect(() => {
468468
if (props.mode === "new") {
469+
// If the host value has been modified e.g. not gitlab.example.com, assume it has been set by user and end operation
470+
if (!host.includes(".example.com")) return;
469471
const exampleHostname = `${type.toLowerCase()}.example.com`;
470472
updateHostValue(exampleHostname);
471473
}

0 commit comments

Comments
 (0)