Commit 6df75c0
committed
Fix relationship-based fields showing raw ids after saving
When the publish form resets values from a save response, ids may come back in a
different form than what the client selected — most visibly when typing a new
term into a single-term select field, where the typed text gets normalized to a
taxonomy::slug id the component has no item data for. The item then renders its
raw id instead of its title until a full reload. Refetch item data whenever the
value references items missing from it.1 parent bc8744c commit 6df75c0
1 file changed
Lines changed: 10 additions & 0 deletions
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
| |||
0 commit comments