Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: create unique id for image associated with record
Records and images actually have a many-to-many relationship, but here it's been defined as a one-to-many; using the url as an id for the image was causing subsequent references to the same image to overwrite the previous record associations, so some records did not have any images. This also caused long loading times because the image would be requested for every record but only shown for the last. Using an id that is unique to the resource, record, and image means that images are repeated but that's probably clearer anyway.
- Loading branch information