From 3ec892ae935864cd08d2ecc103d4f7990de69fff Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Fri, 16 Dec 2022 01:15:56 +0100 Subject: [PATCH] Added the "open" case to the Stack enumeration for the Browse module. --- Modules/Sources/Browse/UI/Enumerations/Stack.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Modules/Sources/Browse/UI/Enumerations/Stack.swift b/Modules/Sources/Browse/UI/Enumerations/Stack.swift index d43cd4a..029bd47 100644 --- a/Modules/Sources/Browse/UI/Enumerations/Stack.swift +++ b/Modules/Sources/Browse/UI/Enumerations/Stack.swift @@ -8,6 +8,7 @@ enum Stack { case browse(Folder) + case open(Document) } // MARK: - Computed @@ -16,6 +17,8 @@ extension Stack { var tag: String { if case .browse(let folder) = self { return folder.id + } else if case .open(let document) = self { + return document.id } else { return .Constants.noId }