Skip to content

Commit 4b7d46f

Browse files
authored
Move var declaration to avoid undefined value
1 parent d6c56a9 commit 4b7d46f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/modules/editor/contentObject/views/editorPageComponentListView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ define(function(require) {
7878

7979
renderComponentList: function() {
8080
Origin.trigger('editorComponentListView:removeSubviews');
81-
// _.each(this.collection, function(componentType) {
8281

8382
this.collection.each(function(componentType) {
8483
var properties = componentType.get('properties');
84+
var availablePositions = _.clone(this.availablePositions);
85+
8586
if (properties && properties.hasOwnProperty('_supportedLayout')) {
8687
var supportedLayout = properties._supportedLayout.enum;
87-
var availablePositions = _.clone(this.availablePositions);
8888

8989
// Prune the available positions
9090
if (_.indexOf(supportedLayout, 'half-width') == -1) {

0 commit comments

Comments
 (0)