Skip to content

Commit

Permalink
Saving changes for Custom Code should trigger a full rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Nov 23, 2023
1 parent 731ee5d commit 971dd0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Planet/Views/My/MyPlanetCustomCodeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,10 @@ struct MyPlanetCustomCodeView: View {
planet.customCodeBodyEnd = customCodeBodyEnd
Task {
try planet.save()
try planet.copyTemplateAssets()
try planet.articles.forEach { try $0.savePublic() }
try await planet.savePublic()
Task(priority: .background) {
try await planet.rebuild()
}
NotificationCenter.default.post(name: .loadArticle, object: nil)
try await planet.publish()
}
dismiss()
} label: {
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 1795
CURRENT_PROJECT_VERSION = 1796

0 comments on commit 971dd0b

Please sign in to comment.