Patrik
1cdec861cd
test: guard against null values in custom toCSV functions ( #12938 )
...
### What?
Fixes a crash when exporting documents to CSV if a custom `toCSV`
function tries to access properties on a `null` value.
### Why?
In some cases (especially with Postgres), fields like relationships may
be explicitly `null` if unset. Custom `toCSV` functions that assume the
value is always defined would throw a `TypeError` when attempting to
access nested properties like `value.id`.
### How?
Added a null check in the custom `toCSV` implementation for
`customRelationship`, ensuring the field is an object before accessing
its properties.
This prevents the export from failing and makes custom field transforms
more resilient to missing or optional values.
2025-06-25 11:45:09 -04:00
..
2025-06-05 09:19:19 -07:00
2025-06-25 14:55:07 +01:00
2025-06-19 09:18:29 +00:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2024-11-16 15:30:05 -05:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-04-08 17:25:29 -03:00
2025-05-19 12:36:40 -03:00
2025-05-22 10:04:45 -04:00
2025-06-05 09:19:19 -07:00
2025-06-19 09:18:29 +00:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-24 15:07:17 -04:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-25 09:44:00 -04:00
2025-06-05 09:19:19 -07:00
2025-06-10 11:56:28 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-17 22:24:53 +00:00
2025-06-11 06:23:22 -07:00
2025-05-28 16:50:47 -03:00
2024-10-30 17:56:50 +00:00
2025-06-16 07:58:03 -04:00
2025-06-18 21:43:42 -07:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-16 16:03:18 -04:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-25 11:45:09 -04:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-05 09:19:19 -07:00
2025-06-16 07:58:03 -04:00
2025-06-17 22:24:53 +00:00
2025-06-24 21:25:48 +03:00
2025-06-05 09:19:19 -07:00
2025-05-19 12:36:40 -03:00
2025-06-13 12:31:07 -04:00
2025-06-11 07:49:34 -07:00
2025-05-19 12:36:40 -03:00
2025-06-11 12:04:25 +00:00
2025-05-19 12:36:40 -03:00
2025-05-19 12:36:40 -03:00
2025-06-12 09:01:20 -04:00
2025-06-16 14:56:05 -04:00
2025-06-24 13:18:25 -04:00
2025-06-04 17:34:37 -03:00
2025-06-05 22:01:55 -03:00
2024-12-31 09:14:56 -05:00
2025-06-17 09:10:42 -04:00
2025-06-09 19:09:52 +00:00
2024-12-19 11:08:17 -05:00
2025-03-05 19:14:35 +00:00
2024-09-16 17:02:08 +00:00
2025-05-21 16:25:34 -04:00
2024-09-16 17:02:08 +00:00
2024-11-11 13:59:05 -05:00
2024-10-11 18:54:39 +00:00
2025-02-17 19:50:32 +00:00
2024-10-11 18:54:39 +00:00
2024-12-17 14:49:29 -05:00
2025-03-11 09:45:13 -06:00
2025-06-23 15:10:51 -04:00
2025-02-07 03:24:49 +00:00
2025-06-05 22:01:55 -03:00
2024-10-14 20:02:26 +00:00
2025-03-05 19:14:35 +00:00
2025-05-12 09:41:18 -04:00
2025-02-14 00:08:20 +00:00
2025-01-14 20:00:00 -03:00
2025-03-05 19:14:35 +00:00