Skip to content

Commit 64a0c9d

Browse files
committed
Fixed No quests are available issue on switching the workspaces
by removing the quests array in the singleton class before adding the new long form quest, this is resolved.
1 parent 54ff4eb commit 64a0c9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

GoInfoGame/GoInfoGame/UI/InitialView/InitialViewModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class InitialViewModel: ObservableObject {
113113
self.saveLongQuestsToDefaults(longQuestJson: longQuestsResponse)
114114

115115
// Add one generic form for each longquest
116+
QuestsRepository.shared.allQuests.removeAll()
116117
for (index, quest) in self.longQuests.enumerated() {
117118
let applicableQuest = ApplicableQuest(
118119
quest: LongElementQuest(

0 commit comments

Comments
 (0)