Prevent watcher from being triggered unnecessarily

This ensures that enabled-ref-types is always provided the same array so
that the internal isn't triggered unnecessarily.
parent fd2538de
......@@ -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