We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c236857 commit 84a523fCopy full SHA for 84a523f
src/shared/containers/Contentful/MenuLoader/index.jsx
@@ -38,16 +38,19 @@ class MenuLoaderContainer extends React.Component {
38
spaceName,
39
environment,
40
baseUrl,
41
+ menu,
42
} = this.props;
- // initiate loading the menu data
43
- loadMenuData({
44
- id,
45
- fields,
46
- preview,
47
- spaceName,
48
- environment,
49
- baseUrl,
50
- });
+ if (!menu.length) {
+ // initiate loading the menu data
+ loadMenuData({
+ id,
+ fields,
+ preview,
+ spaceName,
+ environment,
51
+ baseUrl,
52
+ });
53
+ }
54
}
55
56
handleChangeLevel1Id(menuId) {
0 commit comments