mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
fixes: rendering of components in viewer for mobile (#7759)
This commit is contained in:
parent
277e616180
commit
1fe3c608b3
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ class ViewerComponent extends React.Component {
|
|||
let mobileLayoutHasWidgets = false;
|
||||
|
||||
if (this.props.currentLayout === 'mobile') {
|
||||
const currentComponents = data.definition.pages[data.definition.homePageId].components;
|
||||
const currentComponents = appDefData.pages[appDefData.homePageId].components;
|
||||
mobileLayoutHasWidgets =
|
||||
Object.keys(currentComponents).filter((componentId) => currentComponents[componentId]['layouts']['mobile'])
|
||||
.length > 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue