aboutsummaryrefslogtreecommitdiff
path: root/Map/State/AppState.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Map/State/AppState.swift')
-rw-r--r--Map/State/AppState.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/Map/State/AppState.swift b/Map/State/AppState.swift
index f062051..c261725 100644
--- a/Map/State/AppState.swift
+++ b/Map/State/AppState.swift
@@ -38,7 +38,8 @@ func appStateReducer(state: inout AppState, action: AppAction) {
window.makeKeyAndOrderFront(nil)
let renderView = MapRenderView(
- content: map.content ?? "", evolution: Stage.stages(state.selectedEvolution))
+ content: Binding.constant(map.content ?? ""),
+ evolution: Binding.constant(Stage.stages(state.selectedEvolution)))
let view = NSHostingView(rootView: renderView)
window.contentView = view
@@ -91,7 +92,7 @@ func appStateReducer(state: inout AppState, action: AppAction) {
print("Cancel")
}
}
- case .deleteMap(map: let map):
+ case .deleteMap(let map):
let context = PersistenceController.shared.container.viewContext
context.delete(map)