Sasha
ef2475d804
fix(ui): avoid calling getTableState from join field on create ( #9256 )
...
### What?
Fixes the issue when visiting the create view with the Join Field and
using postgres adapter
```
invalid input syntax for type integer: "NaN"
```
This happens because we don't have an ID yet and we send to the
database:
`WHERE id = NaN`
### How?
Avoids calling `getTableState` inside of `RelationshipTable` if there's
no ID yet, as it will always lead to the same empty result. While we
_could_ avoid error directly in the database adapter, I don't think we
should do that render request
Fixes https://github.com/payloadcms/payload/issues/9193
2024-11-17 11:32:50 -05:00
..
2024-11-13 15:47:45 -05:00
2024-11-15 22:47:26 +00:00
2024-11-17 00:47:38 +02:00
2024-11-11 13:59:05 -05:00
2024-11-16 15:30:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-15 12:03:56 -05:00
2024-11-11 13:59:05 -05:00
2024-09-20 22:46:40 -04:00
2024-11-11 13:59:05 -05:00
2024-11-16 16:29:48 +00:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-17 08:31:55 +00:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-16 15:30:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-10-30 17:56:50 +00:00
2024-11-17 11:32:50 -05:00
2024-11-16 15:30:05 -05:00
2024-08-13 12:54:33 -04:00
2024-11-13 12:13:31 -06:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-12 15:00:32 -05:00
2024-11-17 11:25:32 +02:00
2024-07-23 13:44:44 -04:00
2024-11-11 09:31:47 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-11-13 21:27:02 +00:00
2024-11-15 21:47:05 -05:00
2024-11-12 16:41:08 -05:00
2024-11-11 13:59:05 -05:00
2024-07-11 15:59:38 -04:00
2024-05-25 15:45:05 +00:00
2024-10-18 05:38:48 +00:00
2024-03-07 11:33:46 -05:00
2024-11-11 13:59:05 -05:00
2024-09-20 22:46:40 -04:00
2024-11-12 14:42:25 -05:00
2024-08-13 12:54:33 -04:00
2024-11-11 19:28:55 -07:00
2024-09-16 17:02:08 +00:00
2024-11-17 08:31:55 +00: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
2024-10-11 18:54:39 +00:00
2024-10-11 18:54:39 +00:00
2024-03-19 11:31:50 -04:00
2024-11-11 13:59:05 -05:00
2024-11-15 12:03:56 -05:00
2024-05-01 17:35:41 -04:00
2024-11-11 13:59:05 -05:00
2024-11-11 13:59:05 -05:00
2024-08-14 08:57:04 -04:00
2024-08-14 08:57:04 -04:00
2024-10-14 20:02:26 +00:00
2024-10-24 21:19:15 -04:00
2024-04-06 15:06:04 -04:00
2024-06-17 14:25:36 -04:00
2024-08-19 17:31:36 -04:00
2024-03-14 23:53:47 -04:00
2024-11-11 13:59:05 -05:00
2024-10-24 21:19:15 -04:00