mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): 'undefined'
being used for metadata on uploaded images
This commit is contained in:
parent
88025d32c2
commit
d45c33b446
@ -576,7 +576,9 @@ export const imagesApi = api.injectEndpoints({
|
||||
query: ({ file, image_category, is_intermediate, session_id, board_id, crop_visible, metadata }) => {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
formData.append('metadata', JSON.stringify(metadata));
|
||||
if (metadata) {
|
||||
formData.append('metadata', JSON.stringify(metadata));
|
||||
}
|
||||
return {
|
||||
url: buildImagesUrl('upload'),
|
||||
method: 'POST',
|
||||
|
Loading…
Reference in New Issue
Block a user