Commit 6131d5c5 authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '324199-prevent-api-spam-branch-selector' into 'master'

Prevent watcher from being triggered unnecessarily

See merge request gitlab-org/gitlab!56378
parents 8379fd26 9696318a
......@@ -70,7 +70,7 @@ const createProfilesApolloOptions = (name, field, { fetchQuery, fetchError }) =>
export default {
SCAN_TYPE_LABEL,
REF_TYPE_BRANCHES,
enabledRefTypes: [REF_TYPE_BRANCHES],
saveAndRunScanBtnId: 'scan-submit-button',
saveScanBtnId: 'scan-save-button',
components: {
......@@ -445,7 +445,7 @@ export default {
v-model="selectedBranch"
data-testid="dast-scan-branch-input"
no-flip
:enabled-ref-types="[$options.REF_TYPE_BRANCHES]"
:enabled-ref-types="$options.enabledRefTypes"
:project-id="projectPath"
:translations="{
dropdownHeader: __('Select a branch'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment