diff --git a/Mac/MainWindow/AddFeed/AddFeedController.swift b/Mac/MainWindow/AddFeed/AddFeedController.swift index 98c8cff88..ff759c8ec 100644 --- a/Mac/MainWindow/AddFeed/AddFeedController.swift +++ b/Mac/MainWindow/AddFeed/AddFeedController.swift @@ -43,10 +43,7 @@ class AddFeedController: AddFeedWindowControllerDelegate, FeedFinderDelegate { func showAddFeedSheet(_ urlString: String?, _ name: String?, _ folder: Folder?) { let folderTreeControllerDelegate = FolderTreeControllerDelegate() - - let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil) - rootNode.canHaveChildNodes = true - let folderTreeController = TreeController(delegate: folderTreeControllerDelegate, rootNode: rootNode) + let folderTreeController = TreeController(delegate: folderTreeControllerDelegate) addFeedWindowController = AddFeedWindowController(urlString: urlString ?? urlStringFromPasteboard, name: name, folder: folder, folderTreeController: folderTreeController, delegate: self) addFeedWindowController!.runSheetOnWindow(hostWindow) diff --git a/iOS/Add/AddFeedFolderPickerData.swift b/iOS/Add/AddFeedFolderPickerData.swift index e045129ae..650e279a0 100644 --- a/iOS/Add/AddFeedFolderPickerData.swift +++ b/iOS/Add/AddFeedFolderPickerData.swift @@ -20,10 +20,7 @@ struct AddFeedFolderPickerData { init() { let treeControllerDelegate = FolderTreeControllerDelegate() - - let rootNode = Node(representedObject: AccountManager.shared.defaultAccount, parent: nil) - rootNode.canHaveChildNodes = true - let treeController = TreeController(delegate: treeControllerDelegate, rootNode: rootNode) + let treeController = TreeController(delegate: treeControllerDelegate) treeController.rootNode.childNodes.forEach { node in