mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): throw on fetch err when copying image
This commit is contained in:
@@ -25,6 +25,9 @@ export const useCopyImageToClipboard = () => {
|
||||
try {
|
||||
const getImageBlob = async () => {
|
||||
const response = await fetch(image_url);
|
||||
if (!response.ok) {
|
||||
throw new Error(`Problem retrieving image data`);
|
||||
}
|
||||
return await response.blob();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user