1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

fix more tests

This commit is contained in:
Michael Telatynski
2020-11-05 16:54:25 +00:00
parent 423068b502
commit ae2d9941ff
2 changed files with 3 additions and 3 deletions

View File

@@ -50,8 +50,8 @@ class Skinner {
return null;
}
// components have to be functions.
const validType = typeof comp === 'function';
// components have to be functions or forwardRef objects with a render function.
const validType = typeof comp === 'function' || comp.render;
if (!validType) {
throw new Error(`Not a valid component: ${name} (type = ${typeof(comp)}).`);
}