Skip to content

Commit 264a389

Browse files
vharmainclaude
andcommitted
Enable fids assignment for single-route case in routes subscription
The single-route branch in the ::routes condp was commented out with #_#_, so persisted routes with one entry had no :fids. This caused compute-itrs-technical to match zero features and always return nil. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f9ab32b commit 264a389

File tree

1 file changed

+6
-6
lines changed
  • webapp/src/cljs/lipas/ui/sports_sites/activities

1 file changed

+6
-6
lines changed

webapp/src/cljs/lipas/ui/sports_sites/activities/subs.cljs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@
8989

9090
;; Single route, assume no sub-routes
9191
;; (all segments belong to this route)
92-
#_#_1 (assoc-in routes [0 :fids] (-> edit-data
93-
:location
94-
:geometries
95-
:features
96-
(->> (map :id))
97-
set))
92+
1 (assoc-in routes [0 :fids] (-> edit-data
93+
:location
94+
:geometries
95+
:features
96+
(->> (map :id))
97+
set))
9898

9999
;; Multiple routes, don't assume anything about sub-routes,
100100
;; let the user decide

0 commit comments

Comments
 (0)