fix(assets): add the missing await
to getHTMLAttributes (#8773)
This commit is contained in:
parent
30de324361
commit
eaed844ea8
2 changed files with 6 additions and 1 deletions
5
.changeset/young-taxis-battle.md
Normal file
5
.changeset/young-taxis-battle.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix an issue where HTML attributes do not render if getHTMLAttributes in an image service returns a Promise
|
|
@ -111,7 +111,7 @@ export async function getImage(
|
|||
src: imageURL,
|
||||
attributes:
|
||||
service.getHTMLAttributes !== undefined
|
||||
? service.getHTMLAttributes(validatedOptions, imageConfig)
|
||||
? await service.getHTMLAttributes(validatedOptions, imageConfig)
|
||||
: {},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue