Commit 457bb39
fix: look up image by world_heritage_site_id instead of image PK
WorldHeritageVm.id is the site ID, not the image record's PK.
Querying by world_heritage_site_id with is_primary/sort_order ordering
returns the primary image for the site, which is what the frontend passes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 19bfcda commit 457bb39
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments