mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-29 21:51:39 +01:00
guard against part types that have not been impl in the view
This commit is contained in:
parent
d9d76839c5
commit
dbb9e5363c
@ -105,6 +105,9 @@ const formatFunction = {
|
||||
|
||||
function renderPart(part) {
|
||||
const f = formatFunction[part.type];
|
||||
if (!f) {
|
||||
return text(`[unknown part type ${part.type}]`);
|
||||
}
|
||||
return f(part);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user