Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
[Issue] #210
[Problem] Travis failure
[Solution] Fixed linter errors

Signed-off-by: Lukasz Slachciak <l.slachciak@samsung.com>
  • Loading branch information
lmslachciak committed Jul 22, 2019
1 parent a69cb2a commit 2a89a7d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions design-editor/src/panel/property/component/component-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,24 +262,24 @@ class Component extends DressElement {
self._render();
}

/**
/**
* Return list of components, which could be available in current design editor profile
* @param {Object} componentInfo
* @private
*/
_selectComponentsToDeviceProfile(componentInfo) {
let components = {},
comp = null,
_selectComponentsToDeviceProfile(componentInfo) {
let comp = null;
const components = {},
screen = StateManager.get('screen');

for (comp in componentInfo) {
let componentProfileList = componentInfo[comp].options[DEVICE_PROFILE_OPTION];
const componentProfileList = componentInfo[comp].options[DEVICE_PROFILE_OPTION];
if (!componentProfileList || componentProfileList.indexOf(screen.profile) !== -1) {
components[comp] = componentInfo[comp];
}
}
return components;
}
}

/**
* Fill component info at panel
Expand Down

0 comments on commit 2a89a7d

Please sign in to comment.