Commit 746c14df authored by Toby Brennan's avatar Toby Brennan
Browse files

Unlink old location if updating

parent 272d919e
Showing with 2 additions and 0 deletions
+2 -0
......@@ -93,6 +93,8 @@ class MapHelper {
"longitude": location.coordinate.longitude
])
address.locationWasAutomaticLookupWithHash = String(lookupHash)
try address.location.map { try address.unlink($0) }
_ = try address.link(newLocation, type: "location")
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment