You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the application only fetches the first image from the saved configuration, leaving the rest of the images unfetched. This results in only the first image being displayed in the annotation tool, while other images are not processed. The goal is to modify the application to fetch and display all images from the REST API.
Steps to Reproduce
Upload multiple images and visit the annotation page.
Refresh the page.
Observe that only the first image is fetched and displayed.
Other images are not fetched and remain unprocessed.
Expected Behavior
All images from the saved configuration should be fetched from the REST API and displayed in the annotation tool.
Tasks
Update the preloadConfiguration function to handle multiple images.
Create a new function fetchImages to fetch images from the REST API.
Use Promise.all to wait for all image fetches to complete before updating the state.
Ensure the state is updated with all fetched images.
Add a loading indicator to show while images are being fetched.
Update the useEffect hook to fetch all images when the configuration is loaded.
The text was updated successfully, but these errors were encountered:
Currently, the application only fetches the first image from the saved configuration, leaving the rest of the images unfetched. This results in only the first image being displayed in the annotation tool, while other images are not processed. The goal is to modify the application to fetch and display all images from the REST API.
Steps to Reproduce
Expected Behavior
All images from the saved configuration should be fetched from the REST API and displayed in the annotation tool.
Tasks
preloadConfiguration
function to handle multiple images.fetchImages
to fetch images from the REST API.Promise.all
to wait for all image fetches to complete before updating the state.useEffect
hook to fetch all images when the configuration is loaded.The text was updated successfully, but these errors were encountered: