Fix shadowed variable when using raw content (#9773)
* Fix shadowed variable when using raw content * Add test * Update changelog Co-authored-by: Jordan Pittman <jordan@cryptica.me>
This commit is contained in:
parent
48c0dcaf50
commit
1f5d117cf9
3 changed files with 39 additions and 3 deletions
|
|
@ -195,8 +195,8 @@ let state = {
|
|||
return file !== null && typeof file === 'object'
|
||||
})
|
||||
|
||||
for (let { raw: content, extension = 'html' } of rawContent) {
|
||||
content.push({ content, extension })
|
||||
for (let { raw: htmlContent, extension = 'html' } of rawContent) {
|
||||
content.push({ content: htmlContent, extension })
|
||||
}
|
||||
|
||||
return content
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue