From 66fc694718cb174e4e1a4eb1b65350e9299dcdbb Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Tue, 7 Oct 2025 15:36:49 +0200 Subject: [PATCH] Provisioning: Show configured branch in move drawer (#112005) --- .../components/BulkActions/BulkMoveProvisionedResource.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/app/features/provisioning/components/BulkActions/BulkMoveProvisionedResource.tsx b/public/app/features/provisioning/components/BulkActions/BulkMoveProvisionedResource.tsx index 0c426d956ec..6e553ed760c 100644 --- a/public/app/features/provisioning/components/BulkActions/BulkMoveProvisionedResource.tsx +++ b/public/app/features/provisioning/components/BulkActions/BulkMoveProvisionedResource.tsx @@ -195,11 +195,12 @@ export function BulkMoveProvisionedResource({ folderUid, selectedItems, onDismis const workflowOptions = getWorkflowOptions(repository); const folderPath = folder?.metadata?.annotations?.[AnnoKeySourcePath] || ''; const timestamp = generateTimestamp(); + const defaultWorkflow = getDefaultWorkflow(repository); const initialValues = { comment: '', - ref: `bulk-move/${timestamp}`, - workflow: getDefaultWorkflow(repository), + ref: defaultWorkflow === 'branch' ? `bulk-move/${timestamp}` : (repository?.branch ?? ''), + workflow: defaultWorkflow, }; if (!repository || isReadOnlyRepo) {