mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2025-11-25 13:54:25 +00:00
Framework rendering fixes
This commit is contained in:
@@ -26,9 +26,9 @@ const renderer = <T extends StringIndexedObject>( data: T, template: RenderTempl
|
||||
|
||||
if ( template.children.length === 0 ) {
|
||||
if ( template.attribute ) {
|
||||
parent.innerText = String( data[ template.attribute ] );
|
||||
parent.textContent = String( data[ template.attribute ] );
|
||||
} else {
|
||||
parent.innerText = String( data );
|
||||
parent.textContent = String( data );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user