20031: Preselect current collection in move/copy to existing collection tree picker
[arvados-workbench2.git] / src / store / collections / collection-partial-copy-actions.ts
index f9ecb5cafa5487cd43070573f1465ff60b3b0d6c..5da7c8f1d66d2525dc3ff96257e5c1024edd6958 100644 (file)
@@ -109,7 +109,7 @@ export const openCollectionPartialCopyToExistingCollectionDialog = () =>
         const currentCollection = getState().collectionPanel.item;
         if (currentCollection) {
             const initialData = {
-                destination: {uuid: '', destinationPath: ''}
+                destination: {uuid: currentCollection.uuid, destinationPath: ''}
             };
             dispatch(initialize(COLLECTION_PARTIAL_COPY_TO_SELECTED_COLLECTION, initialData));
             dispatch<any>(resetPickerProjectTree());