mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复Scene组件容器找不到
This commit is contained in:
parent
64a2f53cd4
commit
2415c01e84
|
@ -25,7 +25,7 @@ export default React.memo((props: IMapSceneConig) => {
|
|||
};
|
||||
}, []);
|
||||
|
||||
return scene !== null && scene !== undefined ? (
|
||||
return (
|
||||
<SceneContext.Provider value={scene}>
|
||||
{createElement(
|
||||
'div',
|
||||
|
@ -37,5 +37,5 @@ export default React.memo((props: IMapSceneConig) => {
|
|||
scene && props.children,
|
||||
)}
|
||||
</SceneContext.Provider>
|
||||
) : null;
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue