Skip to content

Commit

Permalink
IOS-3251 Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-pusya committed Aug 1, 2024
1 parent d0af12b commit 4598c48
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ final class ObjectSettingsCoordinatorViewModel: ObservableObject,

func showVersionHistory(document: some BaseDocumentProtocol) {
guard let details = document.details else { return }
let isListType = ObjectType(details: details).isListType
versionHistoryData = VersionHistoryData(objectId: document.objectId, spaceId: document.spaceId, isListType: isListType)
versionHistoryData = VersionHistoryData(objectId: document.objectId, spaceId: document.spaceId, isListType: details.isList)
}

func openPageAction(screenData: EditorScreenData) {
Expand Down

0 comments on commit 4598c48

Please sign in to comment.