From b2f40c32019d4e05a1a643f27fd6f458d1853431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Coye=20de=20Brune=CC=81lis?= Date: Wed, 18 Dec 2024 13:48:43 +0100 Subject: [PATCH] fix(AddToMykDrive): Big button selects the correct drive by default --- kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift b/kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift index 8de668f52..45cf23c11 100644 --- a/kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift +++ b/kDrive/UI/Controller/Menu/Share/PublicShareViewModel.swift @@ -159,7 +159,7 @@ final class PublicShareViewModel: InMemoryFileListViewModel { let selectedItemsIds = multipleSelectionViewModel?.selectedItems.map(\.id) ?? [] + [rootProxy.id] let exceptItemIds = multipleSelectionViewModel?.exceptItemIds.map { $0 } ?? [] - let saveViewController = SaveFileViewController.instantiate(driveFileManager: driveFileManager) + let saveViewController = SaveFileViewController.instantiate(driveFileManager: currentUserDriveFileManager) let saveNavigationViewController = SaveFileViewController .setInNavigationController(saveViewController: saveViewController)