Updated readme and fixed linting errors
Change-Id: I185a961fcfbec37acadd3fc35d9cb6e71883c5ce
diff --git a/src/ui_components/smartComponents/smartTable/smartTable.component.js b/src/ui_components/smartComponents/smartTable/smartTable.component.js
index c2cb49f..d65884a 100644
--- a/src/ui_components/smartComponents/smartTable/smartTable.component.js
+++ b/src/ui_components/smartComponents/smartTable/smartTable.component.js
@@ -78,7 +78,7 @@
</example>
*/
- .component('xosSmartTable', {
+ .component('xosSmartTable', {
restrict: 'E',
bindings: {
config: '='
@@ -246,7 +246,7 @@
// build form structure
// TODO move in a pure function for testing purposes
- props.forEach((p, i) => {
+ props.forEach((p) => {
this.formConfig.fields[p] = {
label: LabelFormatter.format(p).replace(':', ''),
type: XosFormHelpers._getFieldFormat(item[p])
@@ -258,5 +258,5 @@
getData();
}
- });
-})();
\ No newline at end of file
+ });
+})();