Andrey Antukh 0779c9ca61
🐛 Fix TypeError in get-points when content is not PathData (#8634)
The with-cache macro in impl.cljc assumed the target was always a
PathData instance (which has a cache field). When content was a plain
vector, (.-cache content) returned undefined in JS, causing:

  TypeError: Cannot read properties of undefined (reading 'get')

Fix:
- path/get-points (app.common.types.path) is now the canonical safe
  entry point: converts non-PathData content via impl/path-data and
  handles nil safely before delegating to segment/get-points
- segment/get-points remains a low-level function that expects a
  PathData instance (no defensive logic at that level)
- streams.cljs: replace direct call to path.segm/get-points with
  path/get-points so the safe conversion path is always used
- with-cache macro: guards against nil/undefined cache, falling back
  to direct evaluation for non-PathData targets

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
2026-03-17 09:31:10 +01:00
..
2025-10-21 13:28:31 +02:00
2024-12-03 18:23:41 +01:00
2025-08-01 11:20:01 +02:00
2024-12-03 12:15:52 +01:00
2025-12-11 16:00:03 +01:00
2025-02-14 14:34:54 +01:00
2024-11-07 11:36:27 +01:00
2025-06-19 11:22:58 +02:00
2024-02-29 10:20:47 +01:00